Get total file size of a directory. Get file size of a path.
Asked in the Code screen stage. Problem 2.
Implement get_path_size(files, path). files is a dictionary mapping normalized absolute paths to either a nonnegative integer file size or null for a directory. Return the file size when path is a file, or the sum of all descendant file sizes when it is a directory. Directory entries include empty directories. Paths are separated by /, and a path is valid if it appears in files.
/ as the separatordef get_path_size(files, path):