PDA

View Full Version : Site stat


joppiesaus
04-05-2011, 07:11 AM
Can the "SITE STAT" function be implemented in a new release? The output is already in ioftpd after the LIST command is sent:

[2] LIST
[2] 150 Opening ASCII mode data connection for directory listing using SSL/TLS.
[2] 226-[ Section: Default ] [ Ratio: 1:3 ] [ Credits: 1.01 GB ]
[2] 226 [ UL: 1.01 GB ] [ DL: 1.01 GB ] [ Speed: 445 KB/Sec ] [ Free: 1.01 GB ]
[2] List Complete: 8,733 bytes in 0.02 seconds (545.81KB/s)

The "SITE STAT" command would return:

[2] SITE STAT
[2] 226-[ Section: Default ] [ Ratio: 1:3 ] [ Credits: 1.01 GB ]
[2] 226 [ UL: 1.01 GB ] [ DL: 1.01 GB ] [ Speed: 445 KB/Sec ] [ Free: 1.01 GB ]

Thanks :)

Yil
04-05-2011, 07:20 AM
I probably should add support for this in the standard distribution, but you can add this "command" to your server in 5 seconds :)

[FTP_Custom_Commands]
stat = !..\text\ftp\TransferComplete


[FTP_SITE_Permissions]
stat = *


Enjoy!

joppiesaus
04-05-2011, 07:28 AM
Thanks Yil!