Skip to content

Commit fec9192

Browse files
committed
Merge branch 'mr/cardao/fix-empty-rm' into 'master'
Remove empty logs from rm command Closes #56 See merge request it/e3-core!150
2 parents 06a9974 + bf389e2 commit fec9192

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/e3/fs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,9 @@ def rm(
441441
else:
442442
file_list = {os.fspath(p) for p in path}
443443

444-
if file_list:
445-
logger.debug(f"rm{' -r' if recursive else ''} {' '.join(file_list)}")
444+
tmp = " ".join(file_list)
445+
if tmp:
446+
logger.debug(f"rm{' -r' if recursive else ''} {tmp}")
446447

447448
def onerror(
448449
func: Callable[..., Any], error_path: str, exc_info: tuple | BaseException

0 commit comments

Comments
 (0)