Topic "Last modfied file time does not get."

Author Message
Ahsan

Guest


Hi,

I am writing a SFTP service. I browse the server directory and receive file structure in a log file, using ls command, to extract last modified file date time. When I look into log file, only receive last modified date. I do not receive any last modified file time.

Can you please tell me why I do not get file modified time????
Here is my log file
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="Ahsan@127.0.0.1" start="2011-03-17T14:28:59.076Z">
<ls>
<destination value="/" />
<files>
<file>
<filename value=".." />
<type value="D" />
<modification value="1899-12-30T00:00:00.000Z" />
<permissions value="---------" />
</file>
<file>
<filename value="fwis.xml" />
<type value="-" />
<size value="49152" />
<modification value="2011-02-08T00:00:00.000Z" />
<permissions value="r--r--r--" />
</file>
</files>
<result success="true" />
</ls>
</session>
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
WinSCP reports what it gets from the server. Are you able to see time in directory listing of any other SFTP client?
_________________
Martin Prikryl
Guest




I am testing my application and using FileZilla Server as Server. I checked my server path file and file is displaying timestamp as well. But, When I check log then there is no timestamp.

Is it possible to make a commad thats returs last modified date time of a file? The reason is, I have to get log file first and close the connection, check either last modified file is changed or not. If it is changed then connect again and download the file.

prikryl wrote:
WinSCP reports what it gets from the server. Are you able to see time in directory listing of any other SFTP client?
Ahsan

Guest


It was not WinSCP issue. It was fileZilla server issue. It is not giving timestamp to Winscp. But, Can you please add a command that returns last modified datetime?

Anonymous wrote:
I am testing my application and using FileZilla Server as Server. I checked my server path file and file is displaying timestamp as well. But, When I check log then there is no timestamp.

Is it possible to make a commad thats returs last modified date time of a file? The reason is, I have to get log file first and close the connection, check either last modified file is changed or not. If it is changed then connect again and download the file.

prikryl wrote:
WinSCP reports what it gets from the server. Are you able to see time in directory listing of any other SFTP client?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License