diff options
| author | plowsof <plowsof@protonmail.com> | 2026-06-25 13:14:09 +0100 |
|---|---|---|
| committer | plowsof <plowsof@protonmail.com> | 2026-06-25 17:03:55 +0100 |
| commit | 123433dd2caf7f5899c760e172dffb68df3375a7 (patch) | |
| tree | 28a269cb1d999e21142348aa9ec036a1720fbe96 /src/main/oshelper.cpp | |
| parent | 0e78e60cd799aaa207125c0c51278f0d481e9dea (diff) | |
| download | monzero-gui-123433dd2caf7f5899c760e172dffb68df3375a7.tar.gz monzero-gui-123433dd2caf7f5899c760e172dffb68df3375a7.tar.xz monzero-gui-123433dd2caf7f5899c760e172dffb68df3375a7.zip | |
wizard: check wallet file directory is writeable
Diffstat (limited to 'src/main/oshelper.cpp')
| -rw-r--r-- | src/main/oshelper.cpp | 6 |
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); |
