summaryrefslogtreecommitdiffstats
path: root/ipfs-api/examples/mfs.rs
diff options
context:
space:
mode:
authorJulius Michaelis <gitter@liftm.de>2020-07-11 20:29:36 +0900
committerJulius Michaelis <gitter@liftm.de>2020-07-12 22:17:01 +0900
commit3905626f8f1c53a5ef933cd9bbefec31f8eb9355 (patch)
tree855c5c1f303df35001237fc53824f09f4efb2c8d /ipfs-api/examples/mfs.rs
parentb84a4be646ce2c781b44954989cc02c747794916 (diff)
add builders for ipfs files {write, read, ls, rm, mkdir, chcid}
Diffstat (limited to 'ipfs-api/examples/mfs.rs')
-rw-r--r--ipfs-api/examples/mfs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipfs-api/examples/mfs.rs b/ipfs-api/examples/mfs.rs
index 2b20111..9deb90f 100644
--- a/ipfs-api/examples/mfs.rs
+++ b/ipfs-api/examples/mfs.rs
@@ -31,7 +31,7 @@ async fn main() {
eprintln!("making /test...");
eprintln!();
- if let Err(e) = client.files_mkdir("/test", false, 0, None, true).await {
+ if let Err(e) = client.files_mkdir("/test", false).await {
eprintln!("error making /test: {}", e);
return;
}
@@ -39,7 +39,7 @@ async fn main() {
eprintln!("making dirs /test/does/not/exist/yet...");
eprintln!();
- if let Err(e) = client.files_mkdir("/test/does/not/exist/yet", true, 0, None, true).await {
+ if let Err(e) = client.files_mkdir("/test/does/not/exist/yet", true).await {
eprintln!("error making /test/does/not/exist/yet: {}", e);
return;
}
@@ -60,7 +60,7 @@ async fn main() {
let src = File::open(file!()).expect("could not read source file");
- if let Err(e) = client.files_write("/test/mfs.rs", true, true, false, 0, None, false, 0, None, true, src).await {
+ if let Err(e) = client.files_write("/test/mfs.rs", src).await {
eprintln!("error writing source file /test/mfs.rs: {}", e);
return;
}
@@ -79,7 +79,7 @@ async fn main() {
eprintln!("removing /test...");
eprintln!();
- if let Err(e) = client.files_rm("/test", true, true).await {
+ if let Err(e) = client.files_rm("/test", true).await {
eprintln!("error removing /test: {}", e);
}