Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/storages/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,12 @@ impl S3Storage for FileSystem {
};

let object_path = trace_try!(self.get_object_path(&bucket, &key));
// Create the key's parent dirs first, as put_object does; otherwise a

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there are tests, please add a test for this.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, sorry, I was a bit too fast on the merge there ^^'

Gonna add one

// prefixed key (e.g. simple/pkg/x.whl) fails File::create with
// NotFound and Complete returns 500.
if let Some(dir_path) = object_path.parent() {
trace_try!(fs::create_dir_all(&dir_path).await);
}
let file = trace_try!(File::create(&object_path).await);
let mut writer = BufWriter::new(file);

Expand Down
Loading