FtpSftpSynchronization

0
Hi I use FtpSftpSynchronization I have 3 issue before I make the order. I am in a hurry to have this working in my project. 1 the sync change date on file when sync from FTP to disk. I need it's keep original date and time.(same the FTP clinet do) 2 My Master are always the master, if different time always owerwrite target without any question. If master file are older I anyway want it to overwrite target file(I only compare time never data, but I guess that is the checkbox 'Compare File Data'). I never have 2 target, always one master and one target. 3 No questions, no dialog from the software. I use lvOutput as logfile and thats perfect for me. My software will run 02.00 every morning so no one can see the dialog anyway, it's only halt the work. Thanks for your help.
 
asked 5/14/2018 3:16:57 PM
add a comment

3 Answers

0
You will need to set `client.RestoreFileProperties` to true as shown in line 183 in Main.cs file. That instructs the file system to restore file date time after file transfer. If you have issue with time offset, please have a look at our first post. We have prepared the example for you at http://www.componentpro.com/temp/FtpSftpSynchronization-RC.zip. You will need to replace {TrialLicenseKey} in the example with the one you got in your old example.
edited 5/16/2018 3:16:29 AM
answered 5/16/2018 2:45:34 AM
add a comment
0
I not sure you understand my questions? I have file on ftp server with date 2004-07-03, when it's sync to local disk its get today date. I ask 3 questions, I get answear 50% of one questions. I think this is the right product for me, but I need support. Please help me!!
edited 5/15/2018 6:19:26 PM
answered 5/15/2018 6:03:08 PM
  This makes your issue clear to us now. We are checking it for you. sysadmin 5/16/2018 2:21:55 AM
add a comment
0
Hello, That seems to be the issue that the FTP time zone is different to the local file zone. We would recommend using the [`GetServerTimeDifference`](http://doc.componentpro.com/ComponentPro-Ftp/determine-local-pc-and-server-time-difference) to check. After that you can set client.ServerTimeZoneOffset to the desired offset. Please have a look at this one: [http://doc.componentpro.com/ComponentPro-Ftp/synchronize-files][1] [1]: http://doc.componentpro.com/ComponentPro-Ftp/synchronize-files
edited 5/15/2018 4:27:31 PM
answered 5/15/2018 4:26:37 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged ultimate sftp or ask your own question.