Permalink
Browse files

Fixed information in comment and docs

  • Loading branch information...
1 parent 2bcee69 commit 97a279829e8d324ea950c53c575df853e0d359f4 @SecurityForUs SecurityForUs committed Oct 18, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 docs/build/html/object.html
  2. +1 −1 object_storage/storage_object.py
@@ -129,7 +129,7 @@
<dl class="method">
<dt id="object_storage.storage_object.StorageObject.is_dir">
<tt class="descname">is_dir</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/object_storage/storage_object.html#StorageObject.is_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#object_storage.storage_object.StorageObject.is_dir" title="Permalink to this definition">¶</a></dt>
-<dd><p>returns True if content_type is &#8216;text/directory&#8217;</p>
+<dd><p>returns True if content_type is &#8216;text/directory&#8217; or &#8216;application/directory&#8217;</p>
</dd></dl>
<dl class="method">
@@ -356,4 +356,4 @@
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.1.
</div>
</body>
-</html>
+</html>
@@ -177,7 +177,7 @@ def _formatter(res):
return self.client.make_request('GET', [self.container], params=params, formatter=_formatter)
def is_dir(self):
- """ returns True if content_type is 'text/directory' """
+ """ returns True if content_type is 'text/directory' or 'application/directory' """
return self.model.content_type in ['text/directory', 'application/directory']
def set_metadata(self, meta):

0 comments on commit 97a2798

Please sign in to comment.