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
4355093f
Kaydet (Commit)
4355093f
authored
May 20, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Tweaked output of 'copy_file()': if copying to a new name, show the whole
destination path, otherwise show just the directory.
üst
a4adafd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
file_util.py
Lib/distutils/file_util.py
+6
-3
No files found.
Lib/distutils/file_util.py
Dosyayı görüntüle @
4355093f
...
@@ -90,7 +90,7 @@ def copy_file (src, dst,
...
@@ -90,7 +90,7 @@ def copy_file (src, dst,
(os.symlink) instead of copying: set it to "hard" or "sym"; if it
(os.symlink) instead of copying: set it to "hard" or "sym"; if it
is None (the default), files are copied. Don't set 'link' on
is None (the default), files are copied. Don't set 'link' on
systems that don't support it: 'copy_file()' doesn't check if
systems that don't support it: 'copy_file()' doesn't check if
hard or symbolic linking is availa
l
ble.
hard or symbolic linking is available.
Under Mac OS, uses the native file copy function in macostools;
Under Mac OS, uses the native file copy function in macostools;
on other systems, uses '_copy_file_contents()' to copy file
on other systems, uses '_copy_file_contents()' to copy file
...
@@ -131,8 +131,11 @@ def copy_file (src, dst,
...
@@ -131,8 +131,11 @@ def copy_file (src, dst,
raise
ValueError
,
\
raise
ValueError
,
\
"invalid value '
%
s' for 'link' argument"
%
link
"invalid value '
%
s' for 'link' argument"
%
link
if
verbose
:
if
verbose
:
print
"
%
s
%
s ->
%
s"
%
(
action
,
src
,
dir
)
if
os
.
path
.
basename
(
dst
)
==
os
.
path
.
basename
(
src
):
print
"
%
s
%
s ->
%
s"
%
(
action
,
src
,
dir
)
else
:
print
"
%
s
%
s ->
%
s"
%
(
action
,
src
,
dst
)
if
dry_run
:
if
dry_run
:
return
1
return
1
...
...
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