Skip to content

Commit

Permalink
umu_runtime: remove directories sync
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Oct 11, 2024
1 parent a90a37f commit c75cd07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umu/umu_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ def _update_umu(
log.debug("Acquired file lock '%s'", lock.lock_file)
for file in local.glob("*"):
if file.is_dir():
thread_pool.submit(rmtree, str(file))
if file.is_file() and file != lock.lock_file:
rmtree(str(file))
file.unlink()
_restore_umu(
json,
Expand Down Expand Up @@ -301,8 +301,8 @@ def _update_umu(
log.debug("Acquired file lock '%s'", lock.lock_file)
for file in local.glob("*"):
if file.is_dir():
thread_pool.submit(rmtree, str(file))
if file.is_file() and file != lock.lock_file:
rmtree(str(file))
file.unlink()
_restore_umu(
json,
Expand Down

0 comments on commit c75cd07

Please sign in to comment.