[+] add custom shutil_rmtree

This commit is contained in:
Siarhei Siniak 2025-06-02 14:26:57 +03:00
parent 15ab55e370
commit fbe6fb01cb
3 changed files with 15 additions and 1 deletions

@ -5,7 +5,7 @@ project(
).stdout().strip('\n'),
# 'online.fxreader.uv',
# ['c', 'cpp'],
version: '0.1.5.17+27.10',
version: '0.1.5.17+27.11',
# default_options: [
# 'cpp_std=c++23',
# # 'prefer_static=true',

@ -123,3 +123,14 @@ def interfaces_index() -> list[interfaces_index_t.Interface]:
)
return res
def shutil_rmtree(
path: pathlib.Path,
preserve_top_path: bool = False,
) -> None:
if preserve_top_path:
for p in path.iterdir():
shutil.rmtree(str(p))
else:
shutil.rmtree(str(path))

Binary file not shown.