EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Modify CreationDate of File

#4836
Posted: 02/01/2008 06:52:47
by Simon Hoser (Basic support level)
Joined: 02/01/2008
Posts: 3

Hi,

I want to upload a file from local machine to a remote server!
I do this width following code:

Client.UploadFile(sourceName, targetName);

It works perfectly, but i want that the creation time of the new File on the Server is the same like it is for the local file. In this case the creation time is the one of loading it up!
Can anyone please help me to change the CreationTime-Property of the File on the Server

thx
Simon
#4837
Posted: 02/01/2008 07:11:56
by Eugene Mayevski (Team)

Use SetAttributes() method after uploading the file to change the attributes.

It's possible to pass the attributes of the file being created in the call to UploadFile(), but not all servers support this. So calling SetAttributes() separately is more reliable.


Sincerely yours
Eugene Mayevski
#4856
Posted: 02/06/2008 03:56:40
by Simon Hoser (Basic support level)
Joined: 02/01/2008
Posts: 3

Thank you for your hint!
I am new at this topic so can you please tell me the exact code-passage to set this attribute?

thank you
simon
#4857
Posted: 02/06/2008 09:56:47
by Eugene Mayevski (Team)

Would you like to get it in Fortran or Haskell?


Sincerely yours
Eugene Mayevski
#4858
Posted: 02/06/2008 10:12:20
by Eugene Mayevski (Team)

Please see this article


Sincerely yours
Eugene Mayevski
#4860
Posted: 02/06/2008 12:18:06
by Simon Hoser (Basic support level)
Joined: 02/01/2008
Posts: 3

i want to get it in C#!

the link you postest can not be found!

thx
simon
#4861
Posted: 02/06/2008 12:30:15
by Eugene Mayevski (Team)

Try clicking on it again, please. It does work (and did work when I posted it).


Sincerely yours
Eugene Mayevski
#4862
Posted: 02/06/2008 12:31:24
by Eugene Mayevski (Team)

As for the samples - this is one of the benefits for licensed customers.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 2334 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!