HomePhabricator

refactor: Extract util/fs_helpers from util/system

Description

refactor: Extract util/fs_helpers from util/system

Summary:
This is an extraction of filesystem related functions from util/system
into their own utility file.

The background of this commit is an ongoing effort to decouple the
libbitcoinkernel library from the ArgsManager defined in system.h.
Moving these functions out of system.h allows including them from a
separate source file without including the ArgsManager definitions from
system.h.

This is a partial backport of core#27254
https://github.com/bitcoin/bitcoin/pull/27254/commits/18fb36367a28819bd5ab402344802796a1248979

Depends on D16150

Test Plan:
With DBUILD_BITCOIN_CHAINSTATE:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Ben Woosley <ben.woosley@gmail.com>Authored on Mar 6 2023, 22:41
PiRKCommitted on May 14 2024, 10:41
PiRKPushed on May 14 2024, 10:41
Reviewer
Restricted Project
Differential Revision
D16151: refactor: Extract util/fs_helpers from util/system
Parents
rABC5d2f0941ddff: refactor: Move error() from util/system.h to logging.h
Branches
Unknown
Tags
Unknown