HomePhabricator

Turn TryCreateDirectory() into TryCreateDirectories()

Description

Turn TryCreateDirectory() into TryCreateDirectories()

Summary:
Use case: TryCreateDirectory(GetDataDir() / "blocks" / "index") would
fail if the blocks directory was not explicitly created before.

The line that did so was in a weird location and could be removed as a
result.

Backport of core's PR9895

Depends on D892

Test Plan:

make check

Reviewers: schancel, #bitcoin_abc

Reviewed By: schancel, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D897

Details

Provenance
Marko Bencun <marko.bencun@monetas.net>Authored on Feb 22 2017, 09:10
deadalnixCommitted on Jan 5 2018, 12:51
deadalnixPushed on Jan 5 2018, 12:51
Reviewer
Restricted Project
Differential Revision
D897: Turn TryCreateDirectory() into TryCreateDirectories()
Parents
rABC678849647dbe: Lightwiehgt absraction of boost::filesystem
Branches
Unknown
Tags
Unknown