http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/e2a3fd921fd296eb636411eac151779ccdd1ecc3/mmgen/fileutil.py
If not, see <http://www.gnu.org/licenses/>. """ fileutil: Routines that read, write, execute or stat files """ # 09 Mar 2024: make all utils accept Path instances as arguments import sys,os from .color import set_vt100 from .util import ( msg, die, get_extension, is_utf8, capfirst, make_full_path, strip_comments, ) def check_or_create_dir(path): try: os.listdir(path) except: if os.getenv('MMGEN_TEST_SUITE'): if os.path.exists(path): # path is a link or regular file from subprocess import...