FileSystemItem
public protocol FileSystemItem
A filesystem item, like a file or a directory.
-
Undocumented
Declaration
Swift
public protocol FileSystemItem -
Opens the file or directory at ‘stringpath’.
Declaration
Swift
init(open stringpath: String) throws -
Opens the file or directory at ‘path’.
Declaration
Swift
init(open path: PathType) throws
-
copy(toDirectory:)Extension methodCopies this to another directory.
Parameter
Parameter toDirectory: The directory to copy this to.Returns
An instance representing the new copy.Throws
NSError.Declaration
Swift
public func copy(toDirectory: DirectoryPath) throws -> SelfParameters
toDirectoryThe directory to copy this to.
Return Value
An instance representing the new copy.
-
copy(toDirectory:)Extension methodCopies this to another directory. The name remains unchanged.
Parameter
Parameter toDirectory: The directory to copy this to.Returns
An instance representing the new copy.Throws
NSError.Declaration
Swift
public func copy(toDirectory: String) throws -> SelfParameters
toDirectoryThe directory to copy this to.
Return Value
An instance representing the new copy.
View on GitHub
FileSystemItem Protocol Reference