addFile (method)
Adds a file to the archive.
Syntax
- (int)addFile:(NSString*)path :(NSString*)localPath;
public func addFile(_ path: String, _ localPath: String) throws -> Int32
Remarks
Use this method to add a disk file to the archive. Provide the local path to the file (e.g. C:\Photos\photo.jpg) via the LocalPath parameter, and the desired path within the archive (e.g. PhotosBackup2020/photo.jpg) via the Path parameter.