Commit
·
218b10b
1
Parent(s):
e5f5880
Update test.py
Browse files
test.py
CHANGED
@@ -301,7 +301,12 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
301 |
|
302 |
for path in paths[conf]:
|
303 |
#raise Exception([x for x in Path(path).glob('**/*')])
|
304 |
-
|
|
|
|
|
|
|
|
|
|
|
305 |
subdirs = [x[0] for x in os.walk(path)]
|
306 |
#raise Exception(subdirs)
|
307 |
|
|
|
301 |
|
302 |
for path in paths[conf]:
|
303 |
#raise Exception([x for x in Path(path).glob('**/*')])
|
304 |
+
def find_mount_point(path):
|
305 |
+
path = os.path.abspath(path)
|
306 |
+
while not os.path.ismount(path):
|
307 |
+
path = os.path.dirname(path)
|
308 |
+
return path
|
309 |
+
raise Exception(find_mount_point(path))
|
310 |
subdirs = [x[0] for x in os.walk(path)]
|
311 |
#raise Exception(subdirs)
|
312 |
|