Skip to content
Permalink
Browse files

feat(api): support for creation of empty FilesContainers with files_c…

…ontainer_create API
  • Loading branch information
bochaco committed Mar 16, 2020
1 parent 1a7bc5c commit 3684c223d6826f99d1860f11ce367cae6ef94539
@@ -86,7 +86,7 @@ impl Safe {
/// # let mut safe = Safe::default();
/// # unwrap!(safe.connect("", Some("fake-credentials")));
/// async_std::task::block_on(async {
/// let (xorurl, _, _) = unwrap!(safe.files_container_create("../testdata/", None, true, false).await);
/// let (xorurl, _, _) = unwrap!(safe.files_container_create(Some("../testdata/"), None, true, false).await);
///
/// let safe_data = unwrap!( safe.fetch( &format!( "{}/test.md", &xorurl.replace("?v=0", "") ), None ).await );
/// let data_string = match safe_data {
@@ -125,7 +125,7 @@ impl Safe {
/// # let mut safe = Safe::default();
/// # unwrap!(safe.connect("", Some("fake-credentials")));
/// async_std::task::block_on(async {
/// let (xorurl, _, _) = unwrap!(safe.files_container_create("../testdata/", None, true, false).await);
/// let (xorurl, _, _) = unwrap!(safe.files_container_create(Some("../testdata/"), None, true, false).await);
///
/// let safe_data = unwrap!( safe.inspect( &format!( "{}/test.md", &xorurl.replace("?v=0", "") ) ).await );
/// let data_string = match safe_data {
@@ -548,7 +548,7 @@ mod tests {
unwrap!(safe.connect("", Some("fake-credentials")));
safe.connect("", Some("")).unwrap();
let (xorurl, _, files_map) = unwrap!(
safe.files_container_create("../testdata/", None, true, false)
safe.files_container_create(Some("../testdata/"), None, true, false)
.await
);

@@ -594,7 +594,7 @@ mod tests {
safe.connect("", Some("")).unwrap();

let (xorurl, _, the_files_map) = unwrap!(
safe.files_container_create("../testdata/", None, true, false)
safe.files_container_create(Some("../testdata/"), None, true, false)
.await
);

@@ -647,7 +647,7 @@ mod tests {
let mut safe = Safe::default();
safe.connect("", Some("")).unwrap();
let (xorurl, _, _the_files_map) = unwrap!(
safe.files_container_create("../testdata/", None, true, false)
safe.files_container_create(Some("../testdata/"), None, true, false)
.await
);

@@ -772,7 +772,7 @@ mod tests {
unwrap!(safe.connect("", Some("fake-credentials")));

let (xorurl, _, _files_map) = unwrap!(
safe.files_container_create("../testdata/", None, true, false)
safe.files_container_create(Some("../testdata/"), None, true, false)
.await
);

0 comments on commit 3684c22

Please sign in to comment.
You can’t perform that action at this time.