Skip to content

Commit

Permalink
Merge pull request #7672 from nextcloud/backport/7662/stable-3.15
Browse files Browse the repository at this point in the history
[stable-3.15] Fix a bug preventing sync root in folder on drive roots
  • Loading branch information
mgallien authored Dec 16, 2024
2 parents 3180934 + 3beb020 commit 3874675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/vfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Result<void, QString> Vfs::checkAvailability(const QString &path, Vfs::Mode mode
#ifdef Q_OS_WIN
if (mode == Mode::WindowsCfApi) {
const auto info = QFileInfo(path);
if (QDir(info.canonicalPath()).isRoot()) {
if (QDir(info.canonicalFilePath()).isRoot()) {
return tr("The Virtual filesystem feature does not support a drive as sync root");
}
const auto fs = FileSystem::fileSystemForPath(info.absoluteFilePath());
Expand Down

0 comments on commit 3874675

Please sign in to comment.