aboutsummaryrefslogtreecommitdiff
path: root/src/main/oshelper.cpp
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2026-06-25 16:55:48 +0000
committertobtoht <tob@featherwallet.org>2026-06-25 16:55:48 +0000
commitfa7722c48bc02561c6760d199239e1aff09fed7a (patch)
tree28a269cb1d999e21142348aa9ec036a1720fbe96 /src/main/oshelper.cpp
parent0e78e60cd799aaa207125c0c51278f0d481e9dea (diff)
parent123433dd2caf7f5899c760e172dffb68df3375a7 (diff)
downloadmonzero-gui-fa7722c48bc02561c6760d199239e1aff09fed7a.tar.gz
monzero-gui-fa7722c48bc02561c6760d199239e1aff09fed7a.tar.xz
monzero-gui-fa7722c48bc02561c6760d199239e1aff09fed7a.zip
Merge pull request #4617
123433d wizard: check wallet file directory is writeable (plowsof) ACKs: selsta
Diffstat (limited to 'src/main/oshelper.cpp')
-rw-r--r--src/main/oshelper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/oshelper.cpp b/src/main/oshelper.cpp
index 2ca0e400..cb9aca7a 100644
--- a/src/main/oshelper.cpp
+++ b/src/main/oshelper.cpp
@@ -248,6 +248,12 @@ QString OSHelper::temporaryPath() const
return QDir::tempPath();
}
+bool OSHelper::isWritableDirectory(const QString &path) const
+{
+ const QFileInfo info(path);
+ return info.exists() && info.isDir() && info.isWritable();
+}
+
QString OSHelper::randomPassword(int numBytes) const
{
numBytes = qBound(16, numBytes, 128);