Skip to content

ftpsclient

Based on: https://github.com/dgonzo27/py-iot-utils

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

wrapper for FTPS server interactions

ImplicitTLS

Bases: FTP_TLS

ftplib.FTP_TLS sub-class to support implicit SSL FTPS

sock property writable

return socket

IoTFTPSClient

iot ftps ftpsclient

delete_file(path)

delete a file from under a path inside the FTPS server

disconnect()

disconnect the current session from the ftps server

download_file(source, dest)

download a file to a path on the local filesystem

instantiate_ftps_session()

init ftps_session based on input params

list_files(path='/')

list files under a path inside the FTPS server

list_files_ex(path)

list files under a path inside the FTPS server

move_file(source, dest)

move a file inside the FTPS server to another path inside the FTPS server

upload_file(source, dest, callback=None)

upload a file to a path inside the FTPS server