diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-07-29 01:43:37 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-07-29 01:43:37 +0200 |
commit | ecd361e7b32fe98c2bb70efaaa7108a589213f60 (patch) | |
tree | 1fac5d89f823c18750f140fe4b5744767aa9f23f /Cargo.toml | |
parent | 218e1842c001822d0a70377bff6731d4a532f598 (diff) |
Copy+Delete because filesystems
Turns out that ‘fs::rename()’ calls ‘rename(2)’ under the hood. This is
a problem because the temporary directory we use is typically located on
a different filesystem than your home directory for example, and so this
would fail. The shitty workaround here is to copy the files and then
delete them.
But it just keeps getting better! Turns out that despite the fact that
‘everything is a file’ on *NIX, we cannot just call ‘fs::copy()’ or
‘fs::remove_file()’ on directories; that would be too smart.
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions