I am using WINSCP functionality with an SSIS script task to move files from a remotePath to a localPath. I am also setting these files to readonly using:
File.SetAttributes(LocalPath, FileAttributes.ReadOnly);
This works to set the attributes, it is just that since I have pulled some data from the remotePath that is already on the localPath, the readonly attribute gets set back to 0 and the archive attribute gets set to 1.
Is there an easy way that I can just pull the files from the remotePath that aren't already in the localPath?
This would eliminate any overwriting of files and also fix my readonly / archive attributes situation