Skip to content

Commit 2335cad

Browse files
committed
handle error touch everything
1 parent 0f1dfcf commit 2335cad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/jeanzay/touch_everything.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
pbar.set_description(f"Touching {dir}")
1919
for root, _, files in os.walk(os.path.join(args.input_folder, dir)):
2020
for file in files:
21-
os.utime(os.path.join(root, file))
21+
try:
22+
os.utime(os.path.join(root, file))
23+
except Exception as e:
24+
logger.info(f"Failed to touch {os.path.join(root, file)}: {e}")
2225
logger.info("All done")

0 commit comments

Comments
 (0)