Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
69cb3cde
Kaydet (Commit)
69cb3cde
authored
Ara 17, 2005
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1343671: clarify docs for os.removedirs
üst
c1d2f7b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
libos.tex
Doc/lib/libos.tex
+9
-5
No files found.
Doc/lib/libos.tex
Dosyayı görüntüle @
69cb3cde
...
...
@@ -931,11 +931,15 @@ Availability: Macintosh, \UNIX, Windows.
\index
{
directory!deleting
}
Removes directories recursively. Works like
\function
{
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
\exception
{
error
}
exception if the leaf directory could not be successfully removed.
successfully removed,
\function
{
removedirs()
}
tries to successively remove every parent directory mentioned in
\var
{
path
}
until an error is raised (which is ignored, because
it generally means that a parent directory is not empty).
For example,
\samp
{
os.removedirs('foo/bar/baz')
}
will first remove
the directory
\samp
{
'foo/bar/baz'
}
, and then remove
\samp
{
'foo/bar'
}
and
\samp
{
'foo'
}
if they are empty.
Raises
\exception
{
OSError
}
if the leaf directory could not be
successfully removed.
\versionadded
{
1.5.2
}
\end{funcdesc}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment