minor changes

This commit is contained in:
Alek Westover
2023-06-13 14:55:17 -04:00
parent 79459e8c0a
commit fc35a19ede
2 changed files with 1 additions and 7 deletions

View File

@@ -1,13 +1,9 @@
/*
**WIP**
* This is a MWE of using our RemoteStorage API to call the aws stuff and download multiple files
*
* TODO:
* fix local_fs and s3_bucket list_files functions. specifically
* 1. local_fs mostly just clean up the error handling or whatever
* 2. s3_bucket needs a lot of work; for example to make sure the pagination thing goes fine.
*
* 3. figure out how to write dirrectly from the buffer to a local file
* 3. figure out how to write directly from the buffer to a local file; and just generally clean up main.rs
*/
use remote_storage::*;

View File

@@ -128,10 +128,8 @@ impl RemoteStorage for LocalFs {
Some(folder) => folder.with_base(&self.storage_root),
None => self.storage_root.clone(),
};
println!("{:?}", full_path);
let mut entries = fs::read_dir(full_path).await?;
let mut files = vec![];
while let Some(entry) = entries.next_entry().await? {
let file_name: PathBuf = entry.file_name().into();
let file_type = entry.file_type().await?;