Get initial skeleton to compile

This commit is contained in:
Gregory John Casamento 2019-08-02 15:08:25 -04:00
parent 30dc7ca832
commit fe3968a9a1
2 changed files with 20 additions and 0 deletions

View file

@ -352,6 +352,9 @@ typedef NSUInteger NSDirectoryEnumerationOptions;
create: (BOOL)shouldCreate
error: (NSError **)error;
/**
* Enumerate over the contents of a directory.
*/
DEFINE_BLOCK_TYPE(GSDirEnumErrorHandler, BOOL, NSURL*, NSError*);
- (NSDirectoryEnumerator *)enumeratorAtURL: (NSURL *)url
includingPropertiesForKeys: (NSArray *)keys

View file

@ -773,6 +773,23 @@ static NSStringEncoding defaultEncoding;
return result;
}
- (NSURL *)URLForDirectory: (NSSearchPathDirectory)directory
inDomain: (NSSearchPathDomainMask)domain
appropriateForURL: (NSURL *)url
create: (BOOL)shouldCreate
error: (NSError **)error
{
return nil;
}
- (NSDirectoryEnumerator *)enumeratorAtURL: (NSURL *)url
includingPropertiesForKeys: (NSArray *)keys
options: (NSDirectoryEnumerationOptions)mask
errorHandler: (GSDirEnumErrorHandler)handler
{
return nil;
}
- (NSArray*) contentsOfDirectoryAtPath: (NSString*)path error: (NSError**)error
{
NSArray *result;