Sfoglia il codice sorgente

On permission errors, also fallback from move to copy

default_compile_flags
vector-of-bool 5 anni fa
parent
commit
9bb6c72378
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/dds/util/fs.cpp

+ 1
- 1
src/dds/util/fs.cpp Vedi File

@@ -37,7 +37,7 @@ void dds::safe_rename(path_ref source, path_ref dest) {
return;
}

if (ec != std::errc::cross_device_link) {
if (ec != std::errc::cross_device_link && ec != std::errc::permission_denied) {
throw std::system_error(ec,
fmt::format("Failed to move item [{}] to [{}]",
source.string(),

Loading…
Annulla
Salva