Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

Angstony

Posts

5

Joined

Mon Dec 09, 2013 11:34 pm

Is there an alternative to GetLastWriteTime to get seconds ?

by Angstony » Fri Dec 13, 2013 5:43 am

The 3rd party FTP service I'm using evidently doesn't support whatever method/protocol you use to retrieve the last modified date with the GetLastWriteTime function, because I get the exception "No such file or directory. (code=550)" when I try to use it. I'm sure the file does exist, because I'm just using the first element from the GetFiles() array and GetSize works just fine using the same element. Unfortunately, GetFileInfos only returns last modified dates accurate to the nearest minute.

There must be some way of retrieving the last modified seconds on this service I'm using, because FileZilla lists them.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Is there an alternative to GetLastWriteTime to get secon

by support2 » Fri Dec 13, 2013 9:11 am

What command is Filezilla sending that is getting you the seconds?
no avatar
User

Angstony

Posts

5

Joined

Mon Dec 09, 2013 11:34 pm

Re: Is there an alternative to GetLastWriteTime to get secon

by Angstony » Fri Dec 13, 2013 7:46 pm


Who is online

Users browsing this forum: No registered users and 35 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron