mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-24 22:42:28 +00:00
Use tmp dir during clone to keep orignal passstore in case of error
This commit is contained in:
@ -7,12 +7,10 @@
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
Utils::Utils() {};
|
||||
|
||||
bool Utils::unzip(QUrl zip_url, QString dir_out_path)
|
||||
{
|
||||
auto tmp_dir_path = QStandardPaths::writableLocation(
|
||||
QStandardPaths::TempLocation).append("/unzip");
|
||||
QStandardPaths::CacheLocation).append("/unzip");
|
||||
|
||||
QDir tmp_dir(tmp_dir_path);
|
||||
tmp_dir.removeRecursively();
|
||||
|
@ -10,7 +10,7 @@ class Utils : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Utils();
|
||||
Utils() = default;
|
||||
~Utils() override = default;
|
||||
|
||||
Q_INVOKABLE bool unzip(QUrl zip_url, QString dir_out);
|
||||
|
Reference in New Issue
Block a user