SFTP

Connect to the designated FTP/SFTP server to upload or download files

HOST

FTP/SFTP host, which can be an IP address or a hostname.

PORT

SSH host port number, the default value is 22.

USERNAME

User account name.

PASSWORD

Password for the account.

API

In addition to providing synchronous functions like api.files(), api.read(filename, encoding='utf8'), api.write(filename, text), api.rename(oldname, newname), and api.remove(filename) for accessing files within the workspace, the module also offers an FTP object and related asynchronous functions such as api.ftp.list(path), api.ftp.get(path, filename), api.ftp.put(filename, path), api.ftp.mkdir(path), api.ftp.rename(path, newpath), and api.ftp.remove(path) as follows:

--

We are dedicated to improving our content. Please let us know if you come across any errors, including spelling, grammar, or other mistakes, as your feedback is valuable to us! 🤖️⚡️

Last updated