mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-12 05:34:09 +02:00
Fix test on systems where C:\ is not writeable
This commit is contained in:
parent
dc42ebb793
commit
befc373ea6
@ -1503,8 +1503,10 @@ static QString canonicalPath(const QString &path)
|
||||
QString FolderMan::checkPathValidityForNewFolder(const QString &path, const QUrl &serverUrl) const
|
||||
{
|
||||
QString recursiveValidity = checkPathValidityRecursive(path);
|
||||
if (!recursiveValidity.isEmpty())
|
||||
if (!recursiveValidity.isEmpty()) {
|
||||
qCDebug(lcFolderMan) << path << recursiveValidity;
|
||||
return recursiveValidity;
|
||||
}
|
||||
|
||||
// check if the local directory isn't used yet in another ownCloud sync
|
||||
Qt::CaseSensitivity cs = Qt::CaseSensitive;
|
||||
|
@ -27,6 +27,9 @@ class TestFolderMan: public QObject
|
||||
private slots:
|
||||
void testCheckPathValidityForNewFolder()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
Utility::NtfsPermissionLookupRAII ntfs_perm;
|
||||
#endif
|
||||
QTemporaryDir dir;
|
||||
ConfigFile::setConfDir(dir.path()); // we don't want to pollute the user's config file
|
||||
QVERIFY(dir.isValid());
|
||||
|
Loading…
Reference in New Issue
Block a user