Ignore failures to set permissions when copying, fixes #909
This commit is contained in:
parent
69618b1bac
commit
72c7374d4c
1 changed files with 4 additions and 1 deletions
|
|
@ -290,7 +290,10 @@ impl Op {
|
|||
|
||||
progress.total_bytes = Some(metadata.len());
|
||||
(ctx.on_progress)(self, &progress);
|
||||
to_file.set_permissions(metadata.permissions()).await?;
|
||||
if let Err(err) = to_file.set_permissions(metadata.permissions()).await {
|
||||
// This error is not propogated upwards as some filesystems do not support setting permissions
|
||||
log::warn!("failed to set permissions for {:?}: {}", self.to, err);
|
||||
}
|
||||
|
||||
// Prevent spamming the progress callbacks.
|
||||
let mut last_progress_update = Instant::now();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue