31 lines · 789 B · C++
RawDownload
////  ServerPathUtils.cpp//  libraries/shared/src////  Created by Ryan Huffman on 01/12/16.//  Copyright 2016 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html//#include "ServerPathUtils.h" #include <QStandardPaths>#include <QtCore/QDir>#include <QtWidgets/qapplication.h>#include <QDebug> #include "PathUtils.h" QString ServerPathUtils::getDataDirectory() {    auto dataPath = PathUtils::getRootDataDirectory();     dataPath += qApp->organizationName() + "/" + qApp->applicationName();     return QDir::cleanPath(dataPath);} QString ServerPathUtils::getDataFilePath(QString filename) {    return QDir(getDataDirectory()).absoluteFilePath(filename);}