Skip to content

Commit

Permalink
Fix to unlink directories without an object on S3.
Browse files Browse the repository at this point in the history
  • Loading branch information
danilop committed Jun 18, 2014
1 parent 8ae54e5 commit f2a18c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yas3fs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1830,8 +1830,8 @@ def rmdir(self, path):
logger.debug("rmdir '%s' cache ENOENT" % (path))
raise FuseOSError(errno.ENOENT)
k = self.get_key(path)
if not k and not self.folder_has_contents(path):
logger.debug("rmdir '%s' key ENOENT" % (path))
if not k and not self.cache.has(path) and not self.folder_has_contents(path):
logger.debug("rmdir '%s' S3 ENOENT" % (path))
raise FuseOSError(errno.ENOENT)
dirs = self.cache.get(path, 'readdir')
if dirs == None:
Expand Down

0 comments on commit f2a18c4

Please sign in to comment.