Now properly returning nil when appropriate.
@@ -261,9 +261,10 @@ func ensureDirectory(directoryPath string) error {
if createDirsError != nil {
return createDirsError
}
- }
return nil
}
+ return statError
+}
func getAbsolutePath(directoryPath string) (string, error) {
absolutePath, resolveError := files.ToAbsolutePath(directoryPath)
