Skip to content

Commit 1bbd327

Browse files
committed
updated delete function
1 parent bdbb7ab commit 1bbd327

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pephubclient/files_manager.py

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def file_exists(full_path: str) -> bool:
6969
def delete_file_if_exists(filename: str) -> None:
7070
with suppress(FileNotFoundError):
7171
os.remove(filename)
72+
print(
73+
f"\033[38;5;11m{f'File was deleted successfully -> {filename}'}\033[0m"
74+
)
7275

7376
@staticmethod
7477
def check_writable(path: str, force: bool = True):

0 commit comments

Comments
 (0)