add explanation

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2024-06-27 13:53:23 +02:00
parent 0dd7eb19fc
commit 707199ce99

View File

@@ -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)