If it helps any what I am looking for in my output,
I want the output to resemble the UNIX program ls -R as closely as possible.
I am running solaris 2.10.
I notice that when I use os.walk(), that each directory is showing files that
even ls -a won't show on those directories.
Are those files placed there by the system administrator?
User Profile
Collapse
-
hi bartonc,
Thanks a million for taking a look!!
I would definitely like to learn how to write my own directory walker, and
it is nice to know that if I learn how to use os.walk() that I can get the output
I want, however I really would like to know where my code is going haywire at,
and I am really confused why it goes down to the third level of the directory
tree and then...Leave a comment:
-
My function to recursively list all files in directory tree..
Hi all,
I have spent hours trying to figure out where I have went wrong with my code for my recursive function to list all the files in a directory, and all of the files in all
of its subdirectories.
This is the code:
...Code:import os import sys import dircache import stat import string def dirrecur(currsub):
-
Hi all, I'm a newb.
OS: solaris 2.10
Python Version: 2.3.3
Thanks in advance for any and all help!Leave a comment:
No activity results to display
Show More
Leave a comment: