1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef FILEOPERATION_H
6#define FILEOPERATION_H
7
8#include <QString>
9
10class FileOperation final
11{
12public:
13 static bool doMoveMoveToTrash(const QString &filePath);
14 static bool doRecoverFromTrash(const QString &filePath);
15 static bool doRemove(const QString &filePath);
16 static bool doNewDocument(const QString &parentPath, const QString &docName);
17 static bool doNewFolder(const QString &parentPath, const QString &folderName);
18 static bool deleteDir(const QString &path);
19 static QString checkCreateDir(const QString &src, const QString &dirName);
20 static QString readAll(const QString &filePath);
21 static bool exists(const QString &filePath);
22};
23
24#endif // FILEOPERATION_H
25