implement MoveFileToRecycleBin on Linux

This commit is contained in:
nothingTVatYT
2023-12-14 15:51:20 +01:00
parent 778dd2d3f0
commit f65ded4501
3 changed files with 70 additions and 1 deletions

View File

@@ -585,7 +585,7 @@ void Content::deleteFileSafety(const StringView& path, const Guid& id)
}
}
#if PLATFORM_WINDOWS
#if PLATFORM_WINDOWS || PLATFORM_LINUX
// Safety way - move file to the recycle bin
if (FileSystem::MoveFileToRecycleBin(path))
{