Commit 7fe9eff8 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Log a diagnostic if trying to promote non-regular file.

parent 9d6d672c
......@@ -264,6 +264,7 @@ func (me *UnionFs) putDeletion(name string) (code fuse.Status) {
func (me *UnionFs) Promote(name string, srcResult branchResult) fuse.Status {
if !srcResult.attr.IsRegular() {
// TODO - implement rename for dirs, links, etc.
log.Println("Can only promote normal files: ", name, srcResult.attr)
return fuse.ENOSYS
}
......
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