homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hynek
Recipients Arfrever, Axel.Wegen, Laurent.Mazuel, belopolsky, d0ugal, docs@python, draghuram, eric.araujo, georg.brandl, ggenellina, giampaolo.rodola, hynek, ijmorlan, jokoala, r.david.murray, terry.reedy, ysj.ray, zooko
Date 2012年08月18日.15:14:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345302842.23.0.0657059060696.issue13498@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, let’s do it here, that’s easier:
.. function:: makedirs(path, mode=0o777, exist_ok=False)
 .. index::
 single: directory; creating
 single: UNC paths; and os.makedirs()
 Recursive directory creation function. Like :func:`mkdir`, but makes all
 intermediate-level directories needed to contain the leaf directory.
 The default *mode* is ``0o777`` (octal). On some systems, *mode* is
 ignored. Where it is used, the current umask value is first masked out.
 If the target directory exists, :exc:`OSError` is raised unless *exist_ok*
 is set to ``True`` and the mode doesn't contradict the designated mode as
 discussed in the previous paragraph. If the mode doesn't match,
 :exc:`OSError` is raised regardless of the value of *exist_ok*. If the
 directory cannot be created in other cases, an :exc:`OSError` exception is
 raised too.
 .. note::
 :func:`makedirs` will become confused if the path elements to create
 include :data:`pardir`.
 This function handles UNC paths correctly.
 .. versionadded:: 3.2
 The *exist_ok* parameter.
Python is so much easier than English. :'(
History
Date User Action Args
2012年08月18日 15:14:02hyneksetrecipients: + hynek, georg.brandl, terry.reedy, zooko, belopolsky, ggenellina, draghuram, giampaolo.rodola, ijmorlan, eric.araujo, Arfrever, r.david.murray, ysj.ray, docs@python, Laurent.Mazuel, jokoala, Axel.Wegen, d0ugal
2012年08月18日 15:14:02hyneksetmessageid: <1345302842.23.0.0657059060696.issue13498@psf.upfronthosting.co.za>
2012年08月18日 15:14:01hyneklinkissue13498 messages
2012年08月18日 15:14:01hynekcreate

AltStyle によって変換されたページ (->オリジナル) /