Revision 9ab4b378 pithos-macos/PithosSyncDaemon.m

b/pithos-macos/PithosSyncDaemon.m
524 524
            [storedLocalObjectStates removeObjectForKey:object.name];
525 525
            [self saveLocalState];
526 526
        }
527
    } else if ([object.contentType isEqualToString:@"application/directory"]) {
527
    } else if ([PithosUtilities isContentTypeDirectory:object.contentType]) {
528 528
        // Create local directory object
529 529
        NSLog(@"Sync::create local directory object: %@", filePath);
530 530
        BOOL directoryCreated = NO;
......
866 866
            PithosLocalObjectState *remoteObjectState = [PithosLocalObjectState localObjectState];
867 867
            ASIPithosObject *remoteObject = [remoteObjects objectForKey:objectName];
868 868
            if (remoteObject) {
869
                if ([remoteObject.contentType isEqualToString:@"application/directory"]) {
869
                if ([PithosUtilities isContentTypeDirectory:remoteObject.contentType]) {
870 870
                    remoteObjectState.isDirectory = YES;
871 871
                    object.contentType = @"application/directory";
872 872
                } else {

Also available in: Unified diff