mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-19 12:04:09 -04:00
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
|
||||
}
|
||||
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
|
||||
}
|
||||
nd := filepath.Dir(path)
|
||||
|
||||
Reference in New Issue
Block a user