2025-01-09T14:30:26

This commit is contained in:
2025-01-09 14:30:26 +09:00
parent 90d9816ea2
commit a6be4b4c30
18 changed files with 941 additions and 0 deletions

18
src0/filewalk.py Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/python
import os
from posixpath import dirname
def main(rootDir):
for (root, dirs, files) in os.walk(rootDir):
print("-> " + root)
if len(dirs) > 0:
for dirName in dirs:
print(dirName)
if len(files) > 0:
for fileName in files:
print(fileName)
if __name__ == "__main__":
main("/home/elex/Workspace/ELEX")