[BUGFIX] getFileIndexRecordsForFolder only works for hierarchical path