summaryrefslogtreecommitdiff
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-08 23:44:58 +0000
committerBenjamin Peterson <benjamin@python.org>2008-05-08 23:44:58 +0000
commit173f260f72c927f0d2e4aa434934f27d93daa876 (patch)
tree2c2871ced089b8daeac3e91676baa4f2ecdd3d0f /Doc/library/os.path.rst
parent12b01f4638b17ce1daef26eba20aacd0f9d9d37a (diff)
downloadcpython-173f260f72c927f0d2e4aa434934f27d93daa876.tar.gz
Remove os.path.walk
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r--Doc/library/os.path.rst24
1 files changed, 0 insertions, 24 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index c3c56bed32..e932b655fb 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -261,30 +261,6 @@ write files see :func:`open`, and for accessing the filesystem see the
*unc* will always be the empty string. Availability: Windows.
-.. function:: walk(path, visit, arg)
-
- Calls the function *visit* with arguments ``(arg, dirname, names)`` for each
- directory in the directory tree rooted at *path* (including *path* itself, if it
- is a directory). The argument *dirname* specifies the visited directory, the
- argument *names* lists the files in the directory (gotten from
- ``os.listdir(dirname)``). The *visit* function may modify *names* to influence
- the set of directories visited below *dirname*, e.g. to avoid visiting certain
- parts of the tree. (The object referred to by *names* must be modified in
- place, using :keyword:`del` or slice assignment.)
-
- .. note::
-
- Symbolic links to directories are not treated as subdirectories, and that
- :func:`walk` therefore will not visit them. To visit linked directories you must
- identify them with ``os.path.islink(file)`` and ``os.path.isdir(file)``, and
- invoke :func:`walk` as necessary.
-
- .. note::
-
- The newer :func:`os.walk` :term:`generator` supplies similar functionality
- and can be easier to use.
-
-
.. data:: supports_unicode_filenames
True if arbitrary Unicode strings can be used as file names (within limitations