NSFileManager+DirectoryLocations.h 876 B

123456789101112131415161718192021222324252627
  1. //
  2. // NSFileManager+DirectoryLocations.h
  3. //
  4. // Created by Matt Gallagher on 06 May 2010
  5. //
  6. // Permission is given to use this source code file, free of charge, in any
  7. // project, commercial or otherwise, entirely at your risk, with the condition
  8. // that any redistribution (in part or whole) of source code must retain
  9. // this copyright and permission notice. Attribution in compiled projects is
  10. // appreciated but not required.
  11. //
  12. #import <Foundation/Foundation.h>
  13. //
  14. // DirectoryLocations is a set of global methods for finding the fixed location
  15. // directoriess.
  16. //
  17. @interface NSFileManager (DirectoryLocations)
  18. - (NSString *)findOrCreateDirectory:(NSSearchPathDirectory)searchPathDirectory
  19. inDomain:(NSSearchPathDomainMask)domainMask
  20. appendPathComponent:(NSString *)appendComponent
  21. error:(NSError **)errorOut;
  22. - (NSString *)applicationSupportDirectory;
  23. @end