diff options
author | Will McGugan <willmcgugan@gmail.com> | 2015-11-13 22:18:29 +0000 |
---|---|---|
committer | Will McGugan <willmcgugan@gmail.com> | 2015-11-13 22:18:29 +0000 |
commit | 39f673de2671acb8146b1975cbaa285d340ac9a0 (patch) | |
tree | 1b96a8eb3caec3fc48608f0ae39f4129324c389f /fs/s3fs.py | |
parent | 9d9440e5544abe9742e23e41697f1e0d45f6d86e (diff) | |
download | pyfilesystem-git-39f673de2671acb8146b1975cbaa285d340ac9a0.tar.gz |
added credentials to s3 opener
Diffstat (limited to 'fs/s3fs.py')
-rw-r--r-- | fs/s3fs.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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.""" |