We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
By using the keyword 'Upload File' i get the following warning message:
C:\Program Files\Python 3.7\lib\site-packages\FtpLibrary.py:409: ResourceWarning: unclosed file <io.BufferedReader name='C:\Path\To\My\File'> outputMsg += thisConn.storbinary("STOR " + remoteFileName, open(localFilePath, "rb")) ResourceWarning: Enable tracemalloc to get the object allocation traceback
The text was updated successfully, but these errors were encountered:
@KoppDaniel please upload log files if possible
Sorry, something went wrong.
@kowalpy Sorry I was not able to upload any log file.
But the issue is on lune 409 of FtpLibrary.py that a file is give to the function storbinary but it is never closed.
outputMsg += thisConn.storbinary("STOR " + remoteFileName_, open(localFilePath, "rb"))
The fix would be the following:
with open(localFilePath, 'rb') as localFile: outputMsg += thisConn.storbinary("STOR " + remoteFileName_, localFile)
No branches or pull requests
By using the keyword 'Upload File' i get the following warning message:
C:\Program Files\Python 3.7\lib\site-packages\FtpLibrary.py:409: ResourceWarning: unclosed file <io.BufferedReader name='C:\Path\To\My\File'>
outputMsg += thisConn.storbinary("STOR " + remoteFileName, open(localFilePath, "rb"))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
The text was updated successfully, but these errors were encountered: