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 ( ...@@ -12,6 +12,11 @@ import (
// succeed. // succeed.
func newDirnameMap(fs fuse.FileSystem, dir string) map[string]bool { func newDirnameMap(fs fuse.FileSystem, dir string) map[string]bool {
stream, code := fs.OpenDir(dir, nil) 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() { if !code.Ok() {
log.Printf("newDirnameMap(%v): %v %v", fs, dir, code) log.Printf("newDirnameMap(%v): %v %v", fs, dir, code)
return nil 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