Updates the results file with the size of a directory.
file_path (str) – Path to the results file
total_size (float) – Total size of the directory
unit (str) – Unit of the file size
caseid (str) – The case ID of the directory
dir_path (str) – The directory path