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
f6abb70b
Kaydet (Commit)
f6abb70b
authored
Ara 16, 2013
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mention specific exceptions instead of OSError where appropriate.
üst
0048c98f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
pathlib.rst
Doc/library/pathlib.rst
+4
-3
No files found.
Doc/library/pathlib.rst
Dosyayı görüntüle @
f6abb70b
...
@@ -765,14 +765,15 @@ call fails (for example because the path doesn't exist):
...
@@ -765,14 +765,15 @@ call fails (for example because the path doesn't exist):
Create a new directory at this given path. If *mode* is given, it is
Create a new directory at this given path. If *mode* is given, it is
combined with the process' ``umask`` value to determine the file mode
combined with the process' ``umask`` value to determine the file mode
and access flags. If the path already exists, :exc:`OSError` is raised.
and access flags. If the path already exists, :exc:`FileExistsError`
is raised.
If *parents* is true, any missing parents of this path are created
If *parents* is true, any missing parents of this path are created
as needed; they are created with the default permissions without taking
as needed; they are created with the default permissions without taking
*mode* into account (mimicking the POSIX ``mkdir -p`` command).
*mode* into account (mimicking the POSIX ``mkdir -p`` command).
If *parents* is false (the default), a missing parent raises
If *parents* is false (the default), a missing parent raises
:exc:`
OS
Error`.
:exc:`
FileNotFound
Error`.
.. method:: Path.open(mode='r', buffering=-1, encoding=None, errors=None, newline=None)
.. method:: Path.open(mode='r', buffering=-1, encoding=None, errors=None, newline=None)
...
@@ -879,7 +880,7 @@ call fails (for example because the path doesn't exist):
...
@@ -879,7 +880,7 @@ call fails (for example because the path doesn't exist):
with the process' ``umask`` value to determine the file mode and access
with the process' ``umask`` value to determine the file mode and access
flags. If the file already exists, the function succeeds if *exist_ok*
flags. If the file already exists, the function succeeds if *exist_ok*
is true (and its modification time is updated to the current time),
is true (and its modification time is updated to the current time),
otherwise :exc:`
OS
Error` is raised.
otherwise :exc:`
FileExists
Error` is raised.
.. method:: Path.unlink()
.. method:: Path.unlink()
...
...
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