diff --git a/roundup/init.py b/roundup/init.py
index 8506f22aefee3dbc20dfd435d5391e1a93dd2a7b..7ecba91ef516ad7d261a828aa6e6dfd9f8dd374b 100644 (file)
--- a/roundup/init.py
+++ b/roundup/init.py
def copytree(src, dst, symlinks=0):
"""Recursively copy a directory tree using copyDigestedFile().
- The destination directory os allowed to exist.
+ The destination directory is allowed to exist.
If the optional symlinks flag is true, symbolic links in the
source tree result in symbolic links in the destination tree; if
This was copied from shutil.py in std lib.
"""
- names = os.listdir(src)
+
+ # Prevent 'hidden' files (those starting with '.') from being considered.
+ names = [f for f in os.listdir(src) if not f.startswith('.')]
try:
os.mkdir(dst)
except OSError, error: