diff options
-rwxr-xr-x | build/copy_test_data_ios.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/copy_test_data_ios.py b/build/copy_test_data_ios.py index e6c6a38..5130735 100755 --- a/build/copy_test_data_ios.py +++ b/build/copy_test_data_ios.py @@ -16,6 +16,12 @@ class WrongNumberOfArgumentsException(Exception): def ListFilesForPath(path): """Returns a list of all the files under a given path.""" output = [] + # Ignore dotfiles and dot directories. + # TODO(rohitrao): This will fail to exclude cases where the initial argument + # is a relative path that starts with a dot. + if os.path.basename(path).startswith('.'): + return output + # Files get returned without modification. if not os.path.isdir(path): output.append(path) |