Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
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
django
Commits
426ead27
Kaydet (Commit)
426ead27
authored
Ara 25, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed shutil.copystat copied from stdlib (added to support an old Python?).
üst
6571ed14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
move.py
django/core/files/move.py
+2
-13
No files found.
django/core/files/move.py
Dosyayı görüntüle @
426ead27
...
...
@@ -6,21 +6,10 @@ Move a file in the safest way possible::
"""
import
os
from
shutil
import
copystat
from
django.core.files
import
locks
try
:
from
shutil
import
copystat
except
ImportError
:
import
stat
def
copystat
(
src
,
dst
):
"""Copy all stat info (mode bits, atime and mtime) from src to dst"""
st
=
os
.
stat
(
src
)
mode
=
stat
.
S_IMODE
(
st
.
st_mode
)
if
hasattr
(
os
,
'utime'
):
os
.
utime
(
dst
,
(
st
.
st_atime
,
st
.
st_mtime
))
if
hasattr
(
os
,
'chmod'
):
os
.
chmod
(
dst
,
mode
)
__all__
=
[
'file_move_safe'
]
...
...
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