fuse-friends / fuse-native

Multithreaded FUSE bindings for Node JS.
203 stars 29 forks source link

Invalidate cache #8

Closed microwavesafe closed 4 years ago

microwavesafe commented 4 years ago

I've been using this library successfully with Linux and node 13, so thanks for creating it.

I was wondering if there was a way to force the OS to request a readdir? I found fuse_invalidate_path which sounded promising. But I couldn't find anything similar in this library.

What I'm trying to achieve is the file browser automatically updating when my program updates the filesystem. Without the user having to refresh.

mafintosh commented 4 years ago

Try setting autoCache: true in the fuse constructor. That should do the trick.

microwavesafe commented 4 years ago

Thanks, I'll give this a go and reopen if I have any problems with it.