[docs] Minor fix, docpage

Roy Nard roy.nard at gmail.com
Wed Aug 14 12:47:25 CEST 2013


http://docs.python.org/2/library/os.html
os.walk(*top*, *topdown=True*, *onerror=None*, *followlinks=False*) :::

"Generate the file names in a directory tree by walking the tree either
top-down or bottom-up. For each directory in the tree rooted at directory *
top* (including *top* itself), it yields a 3-tuple (dirpath, dirnames, *
filenames*).
*dirpath* is a string, the path to the directory. *dirnames* is a list of
the names of the subdirectories in *dirpath* (excluding '.' and '..'). *
filenames* is a list of the names of the non-directory files in *dirpath*.
Note that the names in the lists contain no path components. To get a full
path (which begins with *top*) to a file or directory in *dirpath*, do
os.path.join(dirpath, *name*)"

Small revision: Variables does not match.

//Roy Nard
Chalmers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130814/ad68c2b7/attachment.html>


More information about the docs mailing list