We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a5717f + e3a47db commit 943af27Copy full SHA for 943af27
1 file changed
py5-resources/py5-module/src/py5_tools/live_coding/syncing.py
@@ -18,6 +18,7 @@
18
#
19
# *****************************************************************************
20
import datetime as dt
21
+import glob
22
import inspect
23
import os
24
import sys
@@ -304,8 +305,8 @@ def __init__(
304
305
self.getmtime = lambda f: max(
306
(
307
os.path.getmtime(ff)
- for ff in f.parent.glob("**/*")
308
- if ff.is_file()
+ for ff_str in glob.iglob(str(f.parent / "**/*"), recursive=True)
309
+ if (ff := Path(ff_str)).is_file()
310
and not is_subdirectory(self.archive_dir, ff)
311
and not ff.suffix in [".pyc", ".class", ".lst"]
312
),
0 commit comments