Create get_dir_size to avoid unnecessary name copying if only size needed