mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Audio] Fix OSErrors on mixed-filesystem environments (#2765)
Resolves the issue outlined [here](https://github.com/Cog-Creators/Red-DiscordBot/issues/2682#issuecomment-500185495). Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
parent
682ee1a459
commit
d133598d80
@ -213,7 +213,8 @@ class ServerManager:
|
||||
file.flush()
|
||||
finally:
|
||||
file.close()
|
||||
pathlib.Path(path).replace(LAVALINK_JAR_FILE)
|
||||
|
||||
shutil.move(path, str(LAVALINK_JAR_FILE), copy_function=shutil.copyfile)
|
||||
|
||||
@classmethod
|
||||
async def _is_up_to_date(cls):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user