FileManager
extension FileManager
-
Change current directory to
path
for the duration ofbody
, then return to previous directory.Declaration
Swift
public func withCurrentDirectoryPath<Result>(_ path: String, body: () throws -> Result) throws -> Result
Return Value
the result of
body