From a6fc2c104fbd6418cf3014dad9e334ddc5a23f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20David?= Date: Tue, 21 Jan 2020 00:04:04 +0100 Subject: [PATCH] Fix add_directory() error for file tree creation on Windows. Fix #4 --- qarnot/bucket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qarnot/bucket.py b/qarnot/bucket.py index 03479328..a33fa2cc 100644 --- a/qarnot/bucket.py +++ b/qarnot/bucket.py @@ -326,6 +326,7 @@ def add_directory(self, local, remote=""): files = map(_util.decode, files) remote_loc = dirpath.replace(local, remote, 1) + remote_loc = remote_loc.replace('\\', '/') for filename in files: self.add_file(os.path.join(dirpath, filename), posixpath.join(remote_loc, filename))