Page MenuHomePhabricator

util: Add StripRedundantLastElementsOfPath function
ClosedPublic

Authored by PiRK on Dec 20 2021, 10:30.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC817269932456: util: Add StripRedundantLastElementsOfPath function
Summary

This fixes a bug causing listwalletdir to strip lead char of wallet name is datadir has a trailing '/'

Co-authored-by: saibato <saibato.naga@pm.me>
Co-authored-by: MarcoFalke <falke.marco@gmail.com>

This is a backport of core#20080

Test Plan

ninja all check-all