• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question ProFTP, DIR and missing seconds

hebeyer

New Pleskian
Hello,

I have a problem with showing the seconds of a remote file with ProFTP.
My system: Plesk Obsidian 18.0.24 on Ubuntu 18.04.4 LTS with psa-proftpd 1.3.6b

If I make a request of a file on my FTP-server, I get the filetime in the format "hour:minutes" (see below; one line before the last line). But for a project I need the seconds too, like "hour:minutes:seconds" (e. g. "17:57:48").

Same problem with integrated FTP-client in Windows 10. But the GUI of Filezilla shows the correct timestamp with seconds ... :rolleyes:

Has anyone of you an idea, how to get the seconds of a remote filetime? Is there a way to (re)configure ProFTP with Ubuntu/Plesk to show the seconds by default?

Code:
root@mail:~# ftp
ftp> open testvp.mXXXXXXXXXXX.de
Connected to testvp.mXXXXXXXXXXX.de.
220 ProFTPD Server (ProFTPD) [82.165.XXX.XXX]
Name (testvp.mXXXXXXXXXXX.de:root): testuser
331 Password required for testuser
Password:
230 User testuser logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd httpdocs
250 CWD command successful
ftp> dir testfile.dat
200 PORT command successful
150 Opening BINARY mode data connection for file list
-rw-r--r--   1 testuser   psacln        305 Feb 22 17:57 testfile.dat
226 Transfer complete


Greetings from Germany
Henning
 
Back
Top