diff options
| author | tobtoht <tob@featherwallet.org> | 2026-06-25 16:55:48 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-06-25 16:55:48 +0000 |
| commit | fa7722c48bc02561c6760d199239e1aff09fed7a (patch) | |
| tree | 28a269cb1d999e21142348aa9ec036a1720fbe96 /src/main/oshelper.cpp | |
| parent | 0e78e60cd799aaa207125c0c51278f0d481e9dea (diff) | |
| parent | 123433dd2caf7f5899c760e172dffb68df3375a7 (diff) | |
| download | monzero-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.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); |
