files_inotify icon indicating copy to clipboard operation
files_inotify copied to clipboard

Ability to configure inotify events

Open oxomichael opened this issue 1 year ago • 0 comments

Hello,

In some cases with rsync and big files, listenning all this events seems to make hundreds calls to databases (I think, perhaps i'm wrong)...

$descriptor = inotify_add_watch($this->fd, $path,
			\IN_MODIFY + \IN_CREATE + \IN_MOVED_FROM + \IN_MOVED_TO + \IN_DELETE);

Logs

...
...
...
modified 2013/.BIG_FILE.cQkoKU     
  marking '2013' as outdated for LIST_OF_USERS
modified 2013/.BIG_FILE.mkv.cQkoKU     
  marking '2013' as outdated for LIST_OF_USERS
modified 2013/.BIG_FILE.mkv.cQkoKU     
  marking '2013' as outdated for LIST_OF_USERS
modified 2013/.BIG_FILE.cQkoKU     
  marking '2013' as outdated for LIST_OF_USERS
modified 2013/.BIG_FILE.cQkoKU     
  marking '2013' as outdated for LIST_OF_USERS
renamed 2013/.BIG_FILE.cQkoKU to 2013/BIG_FILE
  marking '2013' as outdated for LIST_OF_USERS
  marking '2013' as outdated for LIST_OF_USERS

For my case i want to choose events (or an other solution).

Could we have the ability to configure the events ?

oxomichael avatar Aug 23 '23 20:08 oxomichael