Utils: ensureWritableDir returns expected_str

Allows calling code to get better feedback to user.

Change-Id: I6d11787d314921dc052e87a8348683b221a17425
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-06-20 14:59:37 +02:00
parent 0bc14bfd7d
commit 39837d9c26
7 changed files with 80 additions and 63 deletions

View File

@@ -486,7 +486,7 @@ bool FilePath::isWritableFile() const
\sa createDir()
*/
bool FilePath::ensureWritableDir() const
expected_str<void> FilePath::ensureWritableDir() const
{
return fileAccess()->ensureWritableDirectory(*this);
}