[+] improve shutil_rmtree

This commit is contained in:
Siarhei Siniak 2025-06-06 11:28:38 +03:00
parent 4474e08e10
commit fc10601632
3 changed files with 8 additions and 2 deletions

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

@ -131,6 +131,9 @@ def shutil_rmtree(
) -> None:
if preserve_top_path:
for p in path.iterdir():
if p.is_dir():
shutil.rmtree(str(p))
else:
p.unlink()
else:
shutil.rmtree(str(path))

Binary file not shown.