Hi,
I'm looking at this function:
|
def upload(self, path, file, chunk_size=None, **options): |
_manage_ftp always opens a new FTP connection, together with user login, "FEAT" command and so on. This is done everytime one wants to copy a file to an FTPFS. Is there a good reason why that code doesn't just use self._ftp, the connection that should be open for the lifetime of the FTPFS object? Otherwise, I'd like to create a PR to fix that.
Hi,
I'm looking at this function:
pyfilesystem2/fs/ftpfs.py
Line 813 in 64d7a52
_manage_ftpalways opens a new FTP connection, together with user login, "FEAT" command and so on. This is done everytime one wants to copy a file to an FTPFS. Is there a good reason why that code doesn't just useself._ftp, the connection that should be open for the lifetime of the FTPFS object? Otherwise, I'd like to create a PR to fix that.