I got the ScpFrom.java to preserve the last modified time of the files while 
copying. I'm attaching the modified ScpFrom.java, If in future anyone is 
interested in having the same feature. 

thanks, 
Puthali 

>>> bputtali 03/03/09 09:35 >>>


Hi,

I want to preserve the file modification times while scp'ing from a
machine. Currently i see the ScpTo.java in examples/ folder supports
that. But when i try the same -p option in ScpFrom.java example, it did
not work.

Is there a way, i can copy files preserving the last modified time using
Jsch?

thanks,
Puthali

Attachment: ScpFrom.java
Description: Binary data

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to