summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorMark Summerfield <list@qtrac.plus.com>2007-11-02 08:24:59 (GMT)
committerMark Summerfield <list@qtrac.plus.com>2007-11-02 08:24:59 (GMT)
commitac3d429edc5d1488c00c443d860f3e00f6bdd49e (patch)
tree124975e2f76e9c713c4482e0048a320792104692 /Doc/library/os.rst
parentf7601ee2c074092d5eee6bb077b976678c3a0433 (diff)
downloadcpython-ac3d429edc5d1488c00c443d860f3e00f6bdd49e.zip
cpython-ac3d429edc5d1488c00c443d860f3e00f6bdd49e.tar.gz
cpython-ac3d429edc5d1488c00c443d860f3e00f6bdd49e.tar.bz2
Added more file-handling related cross-references.
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index a776a6b..3843b53 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -11,7 +11,9 @@ functionality than importing a operating system dependent built-in module like
:mod:`posix` or :mod:`nt`. If you just want to read or write a file see
:func:`open`, if you want to manipulate paths, see the :mod:`os.path`
module, and if you want to read all the lines in all the files on the
-command line see the :mod:`fileinput` module.
+command line see the :mod:`fileinput` module. For creating temporary
+files and directories see the :mod:`tempfile` module, and for high-level
+file and directory handling see the :mod:`shutil` module.
This module searches for an operating system dependent built-in module like
:mod:`mac` or :mod:`posix` and exports the same functions and data as found
@@ -983,6 +985,9 @@ Files and Directories
``0777`` (octal). On some systems, *mode* is ignored. Where it is used, the
current umask value is first masked out. Availability: Macintosh, Unix, Windows.
+ It is also possible to create temporary directories; see the
+ :mod:`tempfile` module's :func:`tempfile.mkdtemp` function.
+
.. function:: makedirs(path[, mode])