Structure

NSWorkspace.FileOperationName

These constants specify different types of file operations used by performFileOperation(_:source:destination:files:tag:).

Declaration

struct FileOperationName

Topics

Type Properties

static let compressOperation: NSWorkspace.FileOperationName

Compress file. This operation always returns an error.

static let decompressOperation: NSWorkspace.FileOperationName

Decompress file. This operation always returns an error.

static let decryptOperation: NSWorkspace.FileOperationName

Decrypt file. This operation always returns an error.

static let encryptOperation: NSWorkspace.FileOperationName

Encrypt file. This operation always returns an error.

static let linkOperation: NSWorkspace.FileOperationName

Create hard link to file in destination. Behaves the same as linkPath:toPath:handler:.

static let recycleOperation: NSWorkspace.FileOperationName

Move file to trash. The file is moved to the trash folder on the volume containing the file using the same semantics as NSWorkspaceMoveOperation. If a file with the same name currently exists in the trash folder, the new file is renamed. If no trash folder exists on the volume containing the file, the operation fails.

Relationships

See Also

Manipulating Files

func duplicate([URL], completionHandler: (([URL : URL], Error?) -> Void)?)

Duplicates the specified URLS asynchronously in the same manner as the Finder.

func recycle([URL], completionHandler: (([URL : URL], Error?) -> Void)?)

Moves the specified URLs to the trash in the same manner as the Finder.

func activateFileViewerSelecting([URL])

Activates the Finder, and opens one or more windows selecting the specified files.