'commit'
This commit is contained in:
15
DouYin/check_path_len.py
Normal file
15
DouYin/check_path_len.py
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
import os
|
||||
|
||||
directory = r"d:\dsWork\aiData\DouYin\DownloadedVideos"
|
||||
files = os.listdir(directory)
|
||||
|
||||
print(f"Checking {len(files)} files in {directory}")
|
||||
|
||||
for f in files:
|
||||
path = os.path.join(directory, f)
|
||||
if len(path) > 200:
|
||||
print(f"[LONG] ({len(path)}) {f}")
|
||||
else:
|
||||
# print(f"[OK] ({len(path)}) {f}")
|
||||
pass
|
||||
Reference in New Issue
Block a user