Skip to content
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

Moving temporary .wav files will fail if the destination is another drive #18

Open
metaisfacil opened this issue Oct 21, 2024 · 0 comments

Comments

@metaisfacil
Copy link

metaisfacil commented Oct 21, 2024

Title says it all. Not sure if this is only happening because I'm running Windows, but the temporary .wav files generated during the seek-tune save operation are not moved into the songs subdirectory if the .wavs are on a different drive from seek-tune. This seems like a limitation of os.Rename() specifically.

Relevant code:

err = os.Rename(tmpFile, outputFile)

Error saving song (...\song.flac): failed to rename temporary file to output file: rename ...\song.wav songs\song.wav: The system cannot move the file to a different disk drive.
exit status 0xc000013a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant