diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-18 11:16:21 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-18 11:16:21 +0000 |
commit | 14275a59bad592524ec04451787d305748b99199 (patch) | |
tree | 68d0ea01efd61eaf3d631168c1c8735b6df296c7 /build | |
parent | d8831dfa9ea045bb7e8ba30544f1c437de08980a (diff) | |
download | chromium_src-14275a59bad592524ec04451787d305748b99199.zip chromium_src-14275a59bad592524ec04451787d305748b99199.tar.gz chromium_src-14275a59bad592524ec04451787d305748b99199.tar.bz2 |
Ignore dotfiles when copying test data.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10807006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-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) |