mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 09:52:54 +00:00
minor changes
This commit is contained in:
@@ -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::*;
|
||||
|
||||
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user