FileManager
extension FileManager
-
Change current directory to
pathfor the duration ofbody, then return to previous directory.Declaration
Swift
public func withCurrentDirectoryPath<Result>(_ path: String, body: () throws -> Result) throws -> ResultReturn Value
the result of
body
View on GitHub
FileManager Extension Reference