Message26766
| Author |
d_kagedal |
| Recipients |
| Date |
2005年10月31日.11:30:59 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
The documentation for the os.removedirs function is
seriously broken. This is from the library reference:
"removedirs(path)
Removes directories recursively. Works like rmdir()
except that, if the leaf directory is successfully
removed, directories corresponding to rightmost path
segments will be pruned way until either the whole path
is consumed or an error is raised (which is ignored,
because it generally means that a parent directory is
not empty). Throws an error exception if the leaf
directory could not be successfully removed. New in
version 1.5.2."
The first sentence is the only part that makes any
sense. This shorter version contains as much
information and less misinformation"
"removedirs(path)
Removes a directory and everything in it
recursively. If a file couldn't be removed, the removal
is aborted and you might get an exception if you're lucky."
The doc string you get when you type
"help(os.removedirs)" is different from the one in the
library reference, but equally broken. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:35:53 | admin | link | issue1343671 messages |
| 2007年08月23日 14:35:53 | admin | create |
|