Search code examples
pythonfuse

How to trap a copy/move-file operation in a custom filesystem based on Fuse?


I`m implementing a custom filesystem on Ubuntu using Fuse, but I need to trap when a copy or move operation occur. Right now all I see are when some file are opened for writing or reading, but I need to see these operations in context so I can see what file are being copied or moved.

Any hints?


Solution

  • I found that using pyfilesystem to create a filesystem and mounting it using the fs.expose.fuse in pyfilesystem worked very well. Look into that. I will. Thank you.