This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Description
PayGate Version: v0.9.0-dev
During periods of no activity some vendor systems create zero-byte files that PayGate needs to process and delete. These files will not properly parse as incoming/returned files and need to just be deleted, however zero-byte files might exist during the middle of a transfer from the ODFI's side. We don't want to delete these files right away, but after they've been sitting on the remote machine for a while (e.g. 10m
by default).
Similar to KeepRemoteFiles: <boolean>
I think we want a configuration to remove these outside of that option.
RemoveZeroByteFilesAfter: <duration> # default 10 minutes
These files would be removed as part of transfers/inbound
's cleanup.go
file: https://github.com/moov-io/paygate/blob/v0.9.0-dev1/pkg/transfers/inbound/cleanup.go