I\'m just getting started with Python but already have found it much more productive than Bash shell scripting.
I\'m trying to write a Python script that will traverse e
I'd use os.walk doing the following:
os.walk
def getInfos(currentDir): infos = [] for root, dirs, files in os.walk(currentDir): # Walk directory tree for f in files: infos.append(FileInfo(f,root)) return infos