Remove access checks in windows fs operations

These were giving false negatives on samba shares, which broke the font
collector. Windows also recommends to not use access checks in these
cases, and instead just see if the operations succeeds or not.
This commit is contained in:
arch1t3cht 2022-08-17 02:54:09 +02:00
parent 9ebe154964
commit b697ad6ca0
1 changed files with 0 additions and 2 deletions

View File

@ -60,9 +60,7 @@ void Touch(path const& file) {
}
void Copy(fs::path const& from, fs::path const& to) {
acs::CheckFileRead(from);
CreateDirectory(to.parent_path());
acs::CheckDirWrite(to.parent_path());
if (!CopyFile(from.wstring().c_str(), to.wstring().c_str(), false)) {
switch (GetLastError()) {