Skip to content

Commit

Permalink
Fix Windows Build
Browse files Browse the repository at this point in the history
Signed-off-by: Alkl58 <[email protected]>
  • Loading branch information
Alkl58 committed Nov 6, 2023
1 parent 0c8b1cc commit 67205a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/folderman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1706,14 +1706,14 @@ static QString checkPathValidityRecursive(const QString &path)
// isWritable() doesn't cover all NTFS permissions
// Try write
const auto testPath = selFile.dir().filePath("nextcloud-write-test-file.txt");
const auto fp = fopen(testPath.c_str(), "w");
const auto fp = fopen(testPath.toStdWString().c_str(), "w");
if (!fp) {
return FolderMan::tr("You have no permission to write to the selected folder!");
}
fclose(fp);

// Try delete
const auto rc = remove(testPath.c_str());
const auto rc = remove(testPath.toStdWString().c_str());
if (rc) {
return FolderMan::tr("You have no permission to write to the selected folder!");
}
Expand Down

0 comments on commit 67205a2

Please sign in to comment.