FileCopySuccess
enum FileCopySuccess
An enum for storing the state of a successful file copy procedure.
This enum is used by ClarityActivator to pass the outcome of a successful file copy procedure to the printAlertForMissingFile(_: forDirectoryState:withResult:) -> String
method for printing an alert to the console.
If the copy procedure involved renaming an existing file or folder it passes the new name as an associated value to the replaceCopy
case.
-
The item was successfully copied to desktop and has a unique name.
Declaration
Swift
case pristineCopy
-
The item was successfully copied to desktop and replaced an existing item with the same name. The existing item has been renamed to
newName
.- newName: the new name given to the existing item replaced on the desktop.
Declaration
Swift
case replaceCopy(newName: String)