Wrap the boolean result of a FileSystem operation inside a Try
Wrap the boolean result of a FileSystem operation inside a Try
Result of the FileSystem operation
Error message of the Exception in case result
is false
Success(Unit) if result
is true, Failure(Exception(errorString)) if false