Using SendFile on a file that is open for updates
I have a file that consistently gets updated several times a minutes (after a day, the file rolls to a new one). Every hour, I need to FTP that file so that I have a snapshot while the file is being updated. But, when I use SendFile, I get an FtpException – “The file item could not be opened for reading. Type: Xceed.FileSystem.DiskFile”.
Is there a way to work around this and get it to open the file with FileShare.ReadWrite permissions?