Skip to content

Commit fb0dbe9

Browse files
committed
docs: GetDataDirNet and GetDataDirBase don't create datadir
Since #27073, the behaviour of GetDataDir changed to only return the datadir path, but not create it. This also changed the behaviour of GetDataDirNet and GetDataDirBase but the docs do not yet reflect that.
1 parent 519ec26 commit fb0dbe9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/util/system.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,13 @@ class ArgsManager
287287
* Get data directory path
288288
*
289289
* @return Absolute path on success, otherwise an empty path when a non-directory path would be returned
290-
* @post Returned directory path is created unless it is empty
291290
*/
292291
const fs::path& GetDataDirBase() const { return GetDataDir(false); }
293292

294293
/**
295294
* Get data directory path with appended network identifier
296295
*
297296
* @return Absolute path on success, otherwise an empty path when a non-directory path would be returned
298-
* @post Returned directory path is created unless it is empty
299297
*/
300298
const fs::path& GetDataDirNet() const { return GetDataDir(true); }
301299

0 commit comments

Comments
 (0)