Skip to content

Commit

Permalink
Fix a bug preventing sync root in folder on drive roots
Browse files Browse the repository at this point in the history
Fixes: <#7658>

Signed-off-by: xjzsq <sdxjzsq@126.com>
  • Loading branch information
xjzsq authored and backportbot[bot] committed Dec 16, 2024
1 parent 3180934 commit 3beb020
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 3beb020

Please sign in to comment.