add explanation
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
@@ -44,6 +44,9 @@ func removeEmptyFolder(path string, dryRun bool) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if err := os.Remove(path); err != nil {
|
if err := os.Remove(path); err != nil {
|
||||||
|
// we do not really care about the error here
|
||||||
|
// if the folder is not empty we will get an error,
|
||||||
|
// this is our signal to break out of the recursion
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
nd := filepath.Dir(path)
|
nd := filepath.Dir(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user