summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dir_util.py
diff options
context:
space:
mode:
authorÉric Araujo <aeric@mtlpy.org>2012-12-09 03:47:03 (GMT)
committerÉric Araujo <aeric@mtlpy.org>2012-12-09 03:47:03 (GMT)
commit24457c9ad375239aca9bd176284d1e4f181e02f4 (patch)
treedebeb009292f1615d17ea061a3ad528b41bfec2d /Lib/distutils/dir_util.py
parent62a0d6ea402d18f528629c6e84ed6f46e7c0912a (diff)
parent8b503c0a4e82ba5aadd60215bf493529ce6e1821 (diff)
downloadcpython-24457c9ad375239aca9bd176284d1e4f181e02f4.zip
cpython-24457c9ad375239aca9bd176284d1e4f181e02f4.tar.gz
cpython-24457c9ad375239aca9bd176284d1e4f181e02f4.tar.bz2
Branch merge
Diffstat (limited to 'Lib/distutils/dir_util.py')
-rw-r--r--Lib/distutils/dir_util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/dir_util.py b/Lib/distutils/dir_util.py
index 30daf49..2826ff8 100644
--- a/Lib/distutils/dir_util.py
+++ b/Lib/distutils/dir_util.py
@@ -141,6 +141,10 @@ def copy_tree(src, dst, preserve_mode=1, preserve_times=1,
src_name = os.path.join(src, n)
dst_name = os.path.join(dst, n)
+ if n.startswith('.nfs'):
+ # skip NFS rename files
+ continue
+
if preserve_symlinks and os.path.islink(src_name):
link_dest = os.readlink(src_name)
if verbose >= 1: