diff --git a/src/fuse_rename.cpp b/src/fuse_rename.cpp index 36bc1e8e..0711d0e8 100644 --- a/src/fuse_rename.cpp +++ b/src/fuse_rename.cpp @@ -90,6 +90,8 @@ _rename_create_path(const Policy::Search &searchPolicy_, rv = searchPolicy_(branches_,newfusepath_.parent_path(),newbranches); if(rv < 0) return rv; + if(newbranches.empty()) + return -ENOENT; for(auto &branch : *branches_) {