Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug preventing sync root in folder on drive roots #7662

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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