Commit 1a6d9d93 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Do not spam stderr if deletion directory is missing.

parent 6dfb7a9a
......@@ -12,6 +12,11 @@ import (
// succeed.
func newDirnameMap(fs fuse.FileSystem, dir string) map[string]bool {
stream, code := fs.OpenDir(dir, nil)
if code == fuse.ENOENT {
// The directory not existing is not an error.
return map[string]bool{}
}
if !code.Ok() {
log.Printf("newDirnameMap(%v): %v %v", fs, dir, code)
return nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment