Skip to content

Commit 06a9974

Browse files
committed
Merge branch 'mr/leger/master/remove-useless-log-of-the-rm-function' into 'master'
Remove empty logs from rm command Closes #56 See merge request it/e3-core!149
2 parents 9eec903 + 171cc04 commit 06a9974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/e3/fs.py

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

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

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

0 commit comments

Comments
 (0)