FileManaging
public protocol FileManaging
Abstracts file I/O so you can inject a fake in tests.
-
Undocumented
Declaration
Swift
func fileExists(atPath path: String) -> Bool -
Undocumented
Declaration
Swift
func removeItem(at url: URL) throws -
Undocumented
Declaration
Swift
func createDirectory(at url: URL, withIntermediateDirectories createIntermediates: Bool, attributes: [FileAttributeKey: Any]?) throws -
Undocumented
Declaration
Swift
func copyItem(at src: URL, to dst: URL) throws
View on GitHub
FileManaging Protocol Reference