summaryrefslogtreecommitdiff
path: root/docker/utils/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'docker/utils/utils.py')
-rw-r--r--docker/utils/utils.py4
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)