mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Use `async with Lock` instead of deprecated `with await lock` usage. Forces a file fsync prior and a directory fsync (where available) after rename to prevent issues with left behind temp files. Also should clarify: this is not threadsafe. Comments were clarified, function names remain misleading.