MetPX / sarrac

C implementation of (a subset of) Sarracenia (large scale file transfer utility)
GNU General Public License v2.0
4 stars 1 forks source link

not posting files when they are moved into the current directory. #154

Closed petersilva closed 3 months ago

petersilva commented 3 months ago

have a case where a file is being built in another directory, then moved into the directory being watched. cpost is not posting the files in that directory.

This is in the INOTIFY case. (check4events.)

We found some guard if statements that look bogus. will try removing them and see if tests pass.

petersilva commented 3 months ago

what is happenning:

We add a watch with both events, but if the file starts out outside the tree, or ends outside the tree, then we only get one of the two events.

The existing code was expecting to always see both events. Need to add processing of "unresolved_renames" where only one event was received. such unresolved renames are normal copies, or normal removes.