From 123433dd2caf7f5899c760e172dffb68df3375a7 Mon Sep 17 00:00:00 2001 From: plowsof Date: Thu, 25 Jun 2026 13:14:09 +0100 Subject: wizard: check wallet file directory is writeable --- src/main/oshelper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/oshelper.cpp') 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); -- cgit v1.2.3