```
-BEGIN VERIFY SCRIPT-
git ls-files -- 'src' ':(exclude)src/util/system.h' ':(exclude)src/util/system.cpp' | xargs sed -i 's/GetDataDir()/gArgs.GetDataDirNet()/g';
git ls-files -- 'src' ':(exclude)src/util/system.h' ':(exclude)src/util/system.cpp' | xargs sed -i 's/GetDataDir(true)/gArgs.GetDataDirNet()/g';
arc lint
-END VERIFY SCRIPT-
```
This is a backport of core#21850 [5/6]
https://github.com/bitcoin/bitcoin/pull/21850/commits/4c3a5dcbfc3010965332ad568c3a70618c930ef3
https://github.com/bitcoin/bitcoin/pull/21850/commits/b3e67f20a02bcf43f20873029ce30617c95eb9da