diff options
author | Joffrey F <joffrey@docker.com> | 2016-10-13 16:45:01 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-10-14 16:02:28 -0700 |
commit | 9b35c74f0e7626e360dfa2f00202d23b8d08b7a5 (patch) | |
tree | 8218fc7c87f74c8e1361a5ed06fd88518b957002 /docker/utils/utils.py | |
parent | cec3fe7c318fd22386ff5b18519609ab72db696b (diff) | |
download | docker-py-win32-test-fixes.tar.gz |
Fix dockerignore exclusion logic on Windowswin32-test-fixes
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/utils/utils.py')
-rw-r--r-- | docker/utils/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/utils/utils.py b/docker/utils/utils.py index f2f7c26..d89aecf 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -209,8 +209,8 @@ def match_path(path, pattern): if pattern: pattern = os.path.relpath(pattern) - pattern_components = pattern.split('/') - path_components = path.split('/')[:len(pattern_components)] + pattern_components = pattern.split(os.path.sep) + path_components = path.split(os.path.sep)[:len(pattern_components)] return fnmatch('/'.join(path_components), pattern) |