<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>File Transfer Planet Forums &#187; Topic: Changing timestamp of FTP?</title>
<link>http://www.filetransferplanet.com/forums/</link>
<description>your guide to the world of File Transfer.. and beyond!</description>
<language>en</language>
<pubDate>Wed, 08 Feb 2012 19:16:30 +0000</pubDate>

<item>
<title>randy_ortan on "Changing timestamp of FTP?"</title>
<link>http://www.filetransferplanet.com/forums/topic/changing-timestamp-of-ftp#post-364</link>
<pubDate>Wed, 30 Dec 2009 07:52:58 +0000</pubDate>
<dc:creator>randy_ortan</dc:creator>
<guid isPermaLink="false">364@http://www.filetransferplanet.com/forums/</guid>
<description>&#60;p&#62;I am using apache commons-net-1.4.1.jar for FTP file transfer in my Java application.&#60;/p&#62;
&#60;p&#62;When files are uploaded to server using FTP, modified time of file being uploaded is changed to current time instead of actual modified time of file in local system.&#60;/p&#62;
&#60;p&#62;For eg, consider the file to be uploaded to server is “test.doc”. Modified time of this file in local system is “2009-12-30 2.30pm”. And when this file is uploaded to server at 5.30 pm, after upload, the time stamp of the file uploaded to server is changed to “2009-12-30 5.30 pm” instead of keeping the actual time stamp “2009-12-30 2.30pm”.&#60;/p&#62;
&#60;p&#62;Following is the part of my java code which stores file to server.&#60;br /&#62;
[code]&#60;/p&#62;
&#60;p&#62;File f = new File(localfilePath);&#60;br /&#62;
System.out.println(&#34;Storing file as remote filename: &#34; + f.getName());&#60;br /&#62;
boolean retValue = &#60;a href=&#34;http://ftp.storeFile&#34; rel=&#34;nofollow&#34;&#62;http://ftp.storeFile&#60;/a&#62;(f.getName(), new FileInputStream(f));&#60;br /&#62;
if (!retValue) {&#60;br /&#62;
throw new Exception (&#34;Storing of remote file failed. &#60;a href=&#34;http://ftp.storeFile&#34; rel=&#34;nofollow&#34;&#62;http://ftp.storeFile&#60;/a&#62;()&#34; +&#60;br /&#62;
                                   &#34; returned false.&#34;);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;[/code]&#60;br /&#62;
Does apache commons package contain any methods for setting the time stamp of file uploaded in server?&#60;/p&#62;
&#60;p&#62;Is any other FTP package available which overcomes the issue stated above?&#60;/p&#62;
&#60;p&#62;Thanks in advance.
&#60;/p&#62;</description>
</item>

</channel>
</rss>

