I know we can use the size method from the FTP class to find the size of the files in the FTP server. But here I want to find the total remaining space in the server after files are uploaded so that we could guess how many more files we can upload. Is there a way to do this?
This is not really Python/ftplib question. It's more about what information does your FTP server provide.
AVBL
(for example Serv-U);XQUOTA
(for example WS_FTP).LIST
command (see Is it possible to determine the amount of free space on a remote FTP server without using scripts? ). All these can be used from ftplib. But in general, most FTP servers do not provide any of these.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.