You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go 1.8 and greater changed the behavior of os.Rename such that it will now fail if you are trying to rename to a destination that already exists. We are doing so because we are using the temporary folder libraries to get atomically unique names and then renaming into the directories that get created.
We can:
use TempDir and delete the folder it creates, losing atomic names
make our own atomically random temp dir name function
figure out how to move into the folder correctly instead of rename
The text was updated successfully, but these errors were encountered:
Go 1.8 and greater changed the behavior of os.Rename such that it will now fail if you are trying to rename to a destination that already exists. We are doing so because we are using the temporary folder libraries to get atomically unique names and then renaming into the directories that get created.
We can:
The text was updated successfully, but these errors were encountered: