safe_removal_of_data

Functions

check_files_for_backup_local(files, ...)

Checks which files have been backed up locally (e.g., external drive).

check_files_for_backup_remote(files, ...)

Checks which files have been backed up on a remote server.

main(directory, days, safe, backup_dir, remote)

Main function to remove old data files from a directory.

parse_timestamp_from_filename(filename)

Parses a timestamp from a filename.

remove_file(file_path, removed_count)

Removes a single file and logs the action.

remove_old_data(directory, days, safe, ...)

Core logic to identify and remove old data files.