mmcv/tests/data/for_scan
achaiah 21845db455
[Fix]: fix missing check of directory in scandir (#1110)
* 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>
2021-06-29 21:31:00 +08:00
..
sub port from cvbase and do some refactoring 2018-08-27 02:12:31 +08:00
.file [Fix]: fix missing check of directory in scandir (#1110) 2021-06-29 21:31:00 +08:00
1.json port from cvbase and do some refactoring 2018-08-27 02:12:31 +08:00
1.txt port from cvbase and do some refactoring 2018-08-27 02:12:31 +08:00
2.json port from cvbase and do some refactoring 2018-08-27 02:12:31 +08:00
2.txt port from cvbase and do some refactoring 2018-08-27 02:12:31 +08:00
a.bin port from cvbase and do some refactoring 2018-08-27 02:12:31 +08:00