I've been tasked to fix a service that detects files created within a different partition of the server. This partition has a folder that is shared publicly to allow other accounts to access its contents. I tested the process using the account that created the service and it works properly, being able to stop at breakpoints on debug 开发者_高级运维mode. However, when another account transfers files within this said folder, it does not call the program, and debug mode does not work. Can someone please explain this inconsistency?
Thanks.
EDIT: I just discovered that the files uploaded by FileZilla is not triggering the windows service as opposed to copy/pasting files on the network path through windows explorer.
Can someone explain please. :)
Not all file 'creation' events fire in FSW as one might imagine. If the file is locally created in another folder (temp?) and then moved to watched folder on the same drive it will fire only renamed
and changed
events.
精彩评论