Example #1
0
QT_BEGIN_NAMESPACE

void QStorageInfoPrivate::initRootPath()
{
    rootPath = QFileInfo(rootPath).canonicalFilePath();

    if (rootPath.isEmpty())
        return;

    retrieveUrlProperties(true);
}
Example #2
0
void QStorageInfoPrivate::doStat()
{
    initRootPath();

    if (rootPath.isEmpty())
        return;

    retrieveLabel();
    retrievePosixInfo();
    retrieveUrlProperties();
}
QT_BEGIN_NAMESPACE

void QStorageInfoPrivate::initRootPath()
{
	QFileInfo fileInfo = QFileInfo(rootPath);

	if (fileInfo.exists())
	{
		rootPath = fileInfo.canonicalFilePath();

		if (rootPath.isEmpty())
		{
			return;
		}
	}

	retrieveUrlProperties(true);
}