YKFile 0.0.2

YKFile 0.0.2

测试已测试
语言语言 Objective-CObjective C
许可证 WTFPL
发布最新发布2014年12月

未知维护。



YKFile 0.0.2

  • yumenosuke-k

YKFile的所有功能都在这里!如何使用:请自己读取源代码。

@property(nonatomic, copy) NSString *fullPath; @property(nonatomic, strong, readonly) NSString *name; @property(nonatomic, strong, readonly) NSString *extension; @property(nonatomic, strong, readonly) NSString *parentName; @property(nonatomic, strong, readonly) NSArray *pathComponents; @property(nonatomic, assign, readonly) BOOL exists; @property(nonatomic, assign, readonly) BOOL isFile; @property(nonatomic, assign, readonly) BOOL isEmptyDirectory; @property(nonatomic, assign, readonly) BOOL isDirectory; @property(nonatomic, assign, readonly) BOOL isHidden; @property(nonatomic, assign, readonly) NSInteger depth;

  • (instancetype)fileWithPath:(NSString *)fullPath;
  • (instancetype)initWithPath:(NSString *)fullPath;
  • (instancetype)fileWithAppending:(NSString *)path;
  • (YKFileArray *)filesWithAppending:(NSArray *)paths;
  • (instancetype)parentFile;
  • (void)changeDirectory:(NSString *)path;
  • (BOOL)makeDirectory;
  • (BOOL)makeDirectories;
  • (Boolean)makeDirectory:(NSString *)dirName;
  • (BOOL)makeDirectories:(NSString *)dirName;
  • (BOOL)remove;
  • (BOOL)remove:(NSString *)name;
  • (BOOL)copyTo:(YKFile *)destination;
  • (BOOL)moveTo:(YKFile *)destination;
  • (NSArray *)list;
  • (YKFileArray *)listFiles;
  • (YKFileArray *)listRecursively:(BOOL)recursively files:(BOOL)includeFiles directories:(BOOL)includeDirs;
  • (NSString *)cropPathFromDepth:(NSInteger)from toDepth:(NSInteger)to;
  • (NSString *)cropPathFromDepth:(NSInteger)from;
  • (NSString *)cropPathToDepth:(NSInteger)to;
  • (NSString *)cropPathFromTail:(NSInteger)numOfComponents;
  • (NSString *)pathComponentFromTail:(NSInteger)whatTh;
  • (NSComparisonResult)compare:(YKFile *)file pathFromDepth:(NSInteger)from toDepth:(NSInteger)to;
  • (NSComparisonResult)compare:(YKFile *)file pathFromDepth:(NSInteger)from;
  • (NSComparisonResult)compare:(YKFile *)file pathToDepth:(NSInteger)to;
  • (NSComparisonResult)compare:(YKFile *)file pathFromTail:(int)numOfComponents;
  • (NSComparisonResult)compareWithName:(YKFile *)file;
  • (NSString *)text;
  • (NSURL *)url;
  • (void)cd:(NSString *)path;
  • (void)cd;
  • (BOOL)mkdir:(NSString *)dirName;
  • (BOOL)mkdirs:(NSString *)dirName;
  • (BOOL)mkdir;
  • (BOOL)mkdirs;
  • (BOOL)rm:(NSString *)name;
  • (BOOL)rm;
  • (BOOL)cp:(YKFile *)destination;
  • (BOOL)mv:(YKFile *)destination;
  • (BOOL)isInSameDirectoryAs:(YKFile *)file;