summaryrefslogtreecommitdiff
path: root/fs/s3fs.py
diff options
context:
space:
mode:
authorWill McGugan <willmcgugan@gmail.com>2015-11-13 22:18:29 +0000
committerWill McGugan <willmcgugan@gmail.com>2015-11-13 22:18:29 +0000
commit39f673de2671acb8146b1975cbaa285d340ac9a0 (patch)
tree1b96a8eb3caec3fc48608f0ae39f4129324c389f /fs/s3fs.py
parent9d9440e5544abe9742e23e41697f1e0d45f6d86e (diff)
downloadpyfilesystem-git-39f673de2671acb8146b1975cbaa285d340ac9a0.tar.gz
added credentials to s3 opener
Diffstat (limited to 'fs/s3fs.py')
-rw-r--r--fs/s3fs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/s3fs.py b/fs/s3fs.py
index 1c8b321..4f51a50 100644
--- a/fs/s3fs.py
+++ b/fs/s3fs.py
@@ -487,7 +487,8 @@ class S3FS(FS):
msg = "Parent directory does not exist: %(path)s"
raise ParentDirectoryMissingError(path, msg=msg)
# Create an empty file representing the directory
- self._sync_set_contents(s3pathD,"")
+ if s3pathD not in ('/', ''):
+ self._sync_set_contents(s3pathD,"")
def remove(self,path):
"""Remove the file at the given path."""