|
|
@ -135,10 +135,10 @@ func getValidPath(path string) (string, error) { |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return path, err |
|
|
|
return path, err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
defer os.Remove(pathJoin(path, ".writable-check.tmp")) |
|
|
|
file.Close() |
|
|
|
file.Close() |
|
|
|
|
|
|
|
|
|
|
|
err = os.Remove(pathJoin(path, ".writable-check.tmp")) |
|
|
|
return path, nil |
|
|
|
return path, err |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// isDirEmpty - returns whether given directory is empty or not.
|
|
|
|
// isDirEmpty - returns whether given directory is empty or not.
|
|
|
|