new version with hashtags
This commit is contained in:
parent
d81ad52031
commit
56bdb80ea0
47 changed files with 1424 additions and 825 deletions
|
@ -30,6 +30,7 @@
|
|||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include "filesystem.h"
|
||||
#include <QDebug>
|
||||
|
||||
FILESYSTEM *FILESYSTEM::instance()
|
||||
{
|
||||
|
@ -54,8 +55,9 @@ QString FILESYSTEM::Directory() const
|
|||
|
||||
QString FILESYSTEM::homePath() const
|
||||
{
|
||||
QDir dir(m_Directory);
|
||||
QString homeDir=dir.homePath();
|
||||
//QDir dir(m_Directory);
|
||||
//
|
||||
QString homeDir=QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);;
|
||||
//qDebug(homeDir);
|
||||
return homeDir;
|
||||
}
|
||||
|
@ -81,9 +83,25 @@ void FILESYSTEM::makeDir(QString name)
|
|||
{
|
||||
QDir dir(m_Directory);
|
||||
if (dir.mkdir(name)){
|
||||
qDebug() << "makedir success" <<name;
|
||||
emit success(name);
|
||||
}
|
||||
else {emit error(name,1);}
|
||||
else {
|
||||
qDebug() << "makedir error" <<name;
|
||||
emit error(name,1);
|
||||
}
|
||||
}
|
||||
|
||||
void FILESYSTEM::makePath(QString name)
|
||||
{
|
||||
QDir dir(m_Directory);
|
||||
if (dir.mkpath(name)){
|
||||
qDebug() << "makepath success" <<name;
|
||||
emit success(name);
|
||||
}
|
||||
else {
|
||||
qDebug() << "makepath error" <<name;
|
||||
emit error(name,1);}
|
||||
}
|
||||
|
||||
void FILESYSTEM::rmDir()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue