Hi,
for several months now I use your fs-file-lister node on a Raspberry Pi to check a network share for new PDF files. It gets triggered by an injection node in interval mode. The found files get moved from the mountpoint to the local file system.
Today I experienced the problem, that a file has been moved, but was 0 bytes in size. So I guess it has been moved while it still was being written.
The workaround for now is to skip events for files that are 0 bytes in size and to increase the time between two file listings. The safest way would probably be to cache events for several seconds to see if the file size changes, but I didn't have time to implement that yet.
Do you think this could be a feature of the existing or maybe even a new node specialized for network shares?
Hi,
for several months now I use your fs-file-lister node on a Raspberry Pi to check a network share for new PDF files. It gets triggered by an injection node in interval mode. The found files get moved from the mountpoint to the local file system.
Today I experienced the problem, that a file has been moved, but was 0 bytes in size. So I guess it has been moved while it still was being written.
The workaround for now is to skip events for files that are 0 bytes in size and to increase the time between two file listings. The safest way would probably be to cache events for several seconds to see if the file size changes, but I didn't have time to implement that yet.
Do you think this could be a feature of the existing or maybe even a new node specialized for network shares?