forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/11.0'
Change-Id: I6c2a1d497aae9bda45c4aae47fb0be6c61c1ec29
This commit is contained in:
@@ -892,6 +892,9 @@ bool UnixDeviceFileAccess::isFile(const FilePath &filePath) const
|
||||
|
||||
bool UnixDeviceFileAccess::isDirectory(const FilePath &filePath) const
|
||||
{
|
||||
if (filePath.isRootPath())
|
||||
return true;
|
||||
|
||||
const QString path = filePath.path();
|
||||
return runInShellSuccess({"test", {"-d", path}, OsType::OsTypeLinux});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user