Revision 692485cc snf-pithos-tools/pithos/tools/fs.py

b/snf-pithos-tools/pithos/tools/fs.py
248 248
        gid = int(meta.get('x-account-meta-gid', 0))
249 249
        size = int(meta.get('content-length', 0))
250 250
        
251
        if meta['content-type'] == 'application/directory':
251
        if meta['content-type'].split(';', 1)[0].strip() == 'application/directory':
252 252
            mode = int(meta.get('x-object-meta-mode', 0755))
253 253
            flags = S_IFDIR
254 254
            nlink = 2

Also available in: Unified diff