/BEE.framework/BEE/BEEDirectory.m
http://eeframework.googlecode.com/ · Objective C · 33 lines · 22 code · 10 blank · 1 comment · 2 complexity · 43561475d51d1bb74a37c69d37aa0236 MD5 · raw file
- // -*- objc -*-
- #import "BEE/BEE.h"
- @implementation BEEDirectory
- - (id)init
- {
- self = [super init];
-
- return self;
- }
- - (void)dealloc
- {
- [super dealloc];
- }
- - (void)setPath:(NSString *)path
- {
- BOOL isDir = YES;
- if([[NSFileManager defaultManager] fileExistsAtPath:path isDirectory:&isDir] && !isDir)
- {
- [NSException raise:NSGenericException
- format:@"I want be a directory not a file"];
- }
- [super setPath:path];
- }
- @end /* BEEDirectory */