Permalink
Browse files

Added another MIME type for directory detection

  • Loading branch information...
1 parent 97f0825 commit 2bcee691dbc78da12817462e7b06b9c06d658fe4 @SecurityForUs SecurityForUs committed Oct 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 object_storage/storage_object.py
View
2 object_storage/storage_object.py
@@ -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

0 comments on commit 2bcee69

Please sign in to comment.