movePath:toPath:handler:
指定したパスのファイルを指定した宛先に移動します
-(BOOL)movePath:(NSString *)source: toPath:(NSString *)destination: handler:()handler:
解説
指定したパス(source)のファイルを指定した宛先(destination)に移動します。
返り値
( BOOL )
YES/NO
引数
( NSString * )source
ソース
( NSString * )destination
宛先
( )handler
ハンドラ
フレームワーク
Foundation
クラス
NSFileManager
Instance Methods
使用可能
10.0
参照
- copyPath:toPath:handler:
- linkPath:toPath:handler:
- removeFileAtPath:handler:
- fileManager:shouldProceedAfterError:
- fileManager:willProcessPath:
例文
[fileManager movePath:intermediateFileNameToSave toPath:backupFileName handler:nil]