Page MenuHomePhabricator

refactor: Extract util/fs_helpers from util/system
ClosedPublic

Authored by PiRK on Mon, May 13, 16:46.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC0d0aa0ec5fa8: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable