HxUtils/HxDisk.h

66 lines
1.3 KiB
C
Raw Normal View History

2024-01-11 16:14:21 +08:00
#ifndef HXDISK_H
#define HXDISK_H
#include "HxTrace.h"
#include <QStorageInfo>
#include <QtGlobal>
class HxDisk
{
public:
/**
* @brief
* @param path
*/
static void mkpath(QString path);
static void mkpath(QStringList names);
/**
* @brief
* @param rootPath
* @return
*/
static bool exist(QString rootPath);
static bool empty(QString path);
/**
* @brief
* @return
*/
static QList<QStorageInfo> mounted_volumes();
/**
* @brief
* @param rootPath
* @return , : G
*/
static double total_size(QString rootPath);
/**
* @brief
* @param rootPath
* @return , : G
*/
static double free_size(QString rootPath);
/**
* @brief
* @param path
* @return
*/
static int entry_info_list(QString path);
/**
* @brief ,
* @param filepath
*/
static void remove(QString filepath);
};
#endif