mafintosh/fuse-bindings

[Question] How to support file renames?

Opened this issue · 4 comments

I've got a writeable filesystem implemented successfully, however, I can't seem to figure out how to get file renames to work. I've implemented the rename operation, but if I try to rename a file, I get an EPERM: operation not permitted, rename error message. Just to double-check, I also set every file and directory's stat mode to include read/write/execute permissions for everyone, and I still can't seem to get rename working.

Is there a trick to getting this to work? My rename handler doesn't even appear to be getting called, so I seem to be missing something (that's probably obvious!). Any suggestions would be greatly appreciated!

If I remember correctly (and I could be wrong), there is a trick to this. Try implementing other operations if you get stuck, as usually it's because some other obscure operation is involved in the one you are trying to get to work.

@sam0x17 Thanks! I made an attempt at doing this today, but it's possible I missed one as part of the guess-and-check process :)

Just noticed your comment here: winfsp/winfsp#79. I'll try out that trick.

@lostintangent haha I knew there was something about this somewhere