Instance Method

copyRemoteFile:toLocalPath:

Copy a remote file to a local path

Declaration

- (OBEXError)copyRemoteFile:(NSString *)inRemoteFileName toLocalPath:(NSString *)inLocalPathAndName;

Parameters

inRemoteFileName

The name of the remote file to get

inLocalPathAndName

The path and name of where the received file will go

Return Value

kOBEXSuccess, kOBEXSessionBusyError, or kOBEXBadArgumentError. initially. Further results returned through the fileTransferServicesGetComplete: and fileTransferServicesGetProgress: delegate methods if initially successful.

Discussion

Equivalent to 'cp remotePath/remoteFileName localPathAndName'.