We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 868fba3 commit a5548f8Copy full SHA for a5548f8
rust/cubestore/cubestore/src/remotefs/mod.rs
@@ -256,12 +256,21 @@ impl RemoteFs for LocalDirRemoteFs {
256
.await
257
.map_err(|e| {
258
CubeError::internal(format!(
259
- "Rename {} -> {}: {}",
+ "Copy {} -> {}: {}",
260
temp_upload_path,
261
local_path.to_string_lossy(),
262
e
263
))
264
})?;
265
+ fs::remove_file(&temp_upload_path)
266
+ .await
267
+ .map_err(|e| {
268
+ CubeError::internal(format!(
269
+ "Remove {}: {}",
270
+ temp_upload_path,
271
+ e
272
+ ))
273
+ })?;
274
}
275
Ok(fs::metadata(local_path).await?.len())
276
0 commit comments