mirror of https://github.com/open-mmlab/mmcv.git
* Missing check for dir in the 'else' clause Fixing issue when recursively scanning directories with filenames starting with '.' Without this fix, the `if not entry.name.startswith('.') and entry.is_file()` logic falls through to the `else` clause which in the current code base will error out as it encounters '.' files (e.g. .DS_Store) * Updated code per comments * fixing indentation * fix indenterror and add comment * remove .DS_Store and add .file Co-authored-by: zhouzaida <zhouzaida@163.com> |
||
---|---|---|
.. | ||
sub | ||
.file | ||
1.json | ||
1.txt | ||
2.json | ||
2.txt | ||
a.bin |