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
Try
info = [] for path, dirs, files in os.walk("."): info.extend(FileInfo(filename, path) for filename in files)
or
info = [FileInfo(filename, path) for path, dirs, files in os.walk(".") for filename in files]
to get a list of one FileInfo instance per file.
FileInfo