Always recognise a directory in pithos
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Mon, 27 Jan 2014 13:02:30 +0000 (15:02 +0200)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Mon, 27 Jan 2014 13:02:30 +0000 (15:02 +0200)
Refs: #4987

kamaki/cli/commands/pithos.py

index 9ea5753..ae82dd4 100644 (file)
@@ -147,7 +147,7 @@ class _pithos_account(_pithos_init):
 
     @staticmethod
     def _is_dir(remote_dict):
-        return 'application/directory' == remote_dict.get(
+        return 'application/directory' in remote_dict.get(
             'content_type', remote_dict.get('content-type', ''))
 
     def _run(self):