HomePhabricator

Turn TryCreateDirectory() into TryCreateDirectories()
9fd9afccfd93Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
schancelPushed on Jan 5 2018, 23:52
Reviewer
Restricted Project
Differential Revision
D897: Turn TryCreateDirectory() into TryCreateDirectories()
Parents
rSTAGING678849647dbe: Lightwiehgt absraction of boost::filesystem
Branches
Unknown
Tags
Unknown