Here is what we are trying to accomplish:
- A client drops off a file on a Windows/Cygwin SFTP folder
- A Windows service scans the folder and processes the file
The problem:
- The Windows service is getting a
WinIOError
when attempting to delete the file after processing. This is because the individual permissions on the file are set to read-only, despite the fact that the parent folder has permissions set to allow the Windows service full access to the content.
Any ideas on how we can set permissions on the file (either through code or through Cygwin) to allow full access to uploaded files?