mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
Update crates/obs/src/sink.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -273,7 +273,7 @@ impl FileSink {
|
|||||||
// if the file not exists, create it
|
// if the file not exists, create it
|
||||||
if !file_exists {
|
if !file_exists {
|
||||||
tokio::fs::create_dir_all(std::path::Path::new(&path).parent().unwrap()).await?;
|
tokio::fs::create_dir_all(std::path::Path::new(&path).parent().unwrap()).await?;
|
||||||
tracing::debug!("the file not exists,create if. path: {:?}", path)
|
tracing::debug!("File does not exist, creating it. Path: {:?}", path)
|
||||||
}
|
}
|
||||||
let file = if file_exists {
|
let file = if file_exists {
|
||||||
// If the file exists, open it in append mode
|
// If the file exists, open it in append mode
|
||||||
|
|||||||
Reference in New Issue
Block a user