add file scanner - lesson 02

This commit is contained in:
url
2026-07-19 17:15:54 +01:00
parent e31bddea19
commit bb1713c63f
+8
View File
@@ -0,0 +1,8 @@
import os
if __name__ == "__main__":
for root, dirs, files in os.walk("/home/url/repos/ou-python"):
for file in files:
full_path = os.path.join(root, file)
if os.path.getsize(full_path) > 100:
print(full_path, os.path.getsize(full_path))