Skip to content

Commit

Permalink
Added another MIME type for directory detection
Browse files Browse the repository at this point in the history
  • Loading branch information
SecurityForUs committed Oct 18, 2012
1 parent fc027e5 commit 0bd8daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object_storage/storage_object.py
Expand Up @@ -178,7 +178,7 @@ def _formatter(res):

def is_dir(self):
""" returns True if content_type is 'text/directory' """
return self.model.content_type == 'text/directory'
return self.model.content_type in ['text/directory', 'application/directory']

def set_metadata(self, meta):
""" Sets metadata for the object
Expand Down

0 comments on commit 0bd8daf

Please sign in to comment.