New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXDEV: cross-device link not permitted, rename #8
Comments
I think this error is about renaming across different volumes, which in general is not an atomic operation so the OS says it can't do it, or at least that's how I understood it. In the sanitized paths you provided I'm assuming the Potentially what you could do is catching that error and falling back to regular writing, but obviously that's not great if you want your writes to not corrupt the file. |
Yes, the error should represent the cross volumes error, but I'm pretty sure both files are on the same folder. Currently I try to fallback to directly write the file back as workaround and it works okay. |
I use this library to safe user json config file.
The full error is like:
EXDEV: cross-device link not permitted, rename 'C:\Users<username>\AppData\Roaming\xmcl\user.json.tmp-48051806880cfebe' -> 'C:\Users<username>\AppData\Roaming\xmcl\user.json'
I only observe this issue in telemetry. I cannot repro this in my environment.
Any idea about this issue?
I'm using atomically
2.0.1
. Currently the users encountered this issue are using Windows.The text was updated successfully, but these errors were encountered: