remove_file

remove_file(file_path: str, removed_count: int) int[source]

Removes a single file and logs the action.

Parameters:
  • file_path (str) – Path to the file.

  • removed_count (int) – Current count of removed files.

Returns:

Updated count of removed files.

Return type:

int