Commit
·
cd67514
1
Parent(s):
34e7466
Update test.py
Browse files
test.py
CHANGED
@@ -303,8 +303,10 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
303 |
#raise Exception([x for x in Path(path).glob('**/*')])
|
304 |
#raise Exception(paths)
|
305 |
subdirs = [x[0] for x in os.walk(path)]
|
306 |
-
|
307 |
-
|
|
|
|
|
308 |
#raise Exception(os.listdir(path))
|
309 |
dataset_path = next(Path(path).iterdir())
|
310 |
#dataset_format = dataset_path.name
|
|
|
303 |
#raise Exception([x for x in Path(path).glob('**/*')])
|
304 |
#raise Exception(paths)
|
305 |
subdirs = [x[0] for x in os.walk(path)]
|
306 |
+
with os.scandir(path) as it:
|
307 |
+
for entry in it:
|
308 |
+
print(entry)
|
309 |
+
#raise Exception(os.is_symlink(path))
|
310 |
#raise Exception(os.listdir(path))
|
311 |
dataset_path = next(Path(path).iterdir())
|
312 |
#dataset_format = dataset_path.name
|