~ubuntu-branches/ubuntu/maverick/zipper.app/maverick

« back to all changes in this revision

Viewing changes to NSFileManager+Custom.m

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2006-09-20 20:12:10 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060920201210-9rezu749ctlciq16
Tags: 1.1-3
* Rebuild against latest libgnustep-gui.
* Updated build depends.
* Bump standards version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        return nil;
70
70
}
71
71
 
 
72
- (void)createDirectoryPathWithParents:(NSString *)aPath
 
73
{
 
74
        NSString *parent;
 
75
        BOOL isDir;
 
76
                
 
77
        parent = [aPath stringByDeletingLastPathComponent];
 
78
        if (([self fileExistsAtPath:parent isDirectory:&isDir] && isDir) == NO)
 
79
        {
 
80
                // parent path does not exist, create it first
 
81
                [self createDirectoryPathWithParents:parent];
 
82
        }
 
83
        
 
84
        // parent exists, create directory
 
85
        [self createDirectoryAtPath:aPath attributes:nil];
 
86
}
 
87
 
72
88
@end