pub struct Ftp { /* private fields */ }
Expand description
FTP and FTPS services support.
Capabilities
This service can be used to:
- read
- write
- list
-
scan -
presign - blocking
Configuration
endpoint
: set the endpoint for connectionroot
: Set the work directory for backendcredential
: login credentialstls
: tls mode
You can refer to FtpBuilder
’s docs for more information
Example
Via Builder
use anyhow::Result;
use opendal::services::Ftp;
use opendal::Object;
use opendal::Operator;
#[tokio::main]
async fn main() -> Result<()> {
// create backend builder
let mut builder = Ftp::default();
builder.endpoint("127.0.0.1");
let op: Operator = Operator::new(builder)?.finish();
let _obj: Object = op.object("test_file");
Ok(())
}
Implementations§
source§impl FtpBuilder
impl FtpBuilder
Trait Implementations§
source§impl Builder for FtpBuilder
impl Builder for FtpBuilder
source§impl Debug for FtpBuilder
impl Debug for FtpBuilder
source§impl Default for FtpBuilder
impl Default for FtpBuilder
source§fn default() -> FtpBuilder
fn default() -> FtpBuilder
Returns the “default value” for a type. Read more