mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
vfs: fix root folder detection regression
Fixes #7864 Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
77b622c18a
commit
0b31319c79
@ -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("Please choose a different location. %1 is a drive. It doesn't support virtual files.").arg(path);
|
||||
}
|
||||
if (const auto fileSystemForPath = FileSystem::fileSystemForPath(info.absoluteFilePath());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user