code: def calculate_path(self, remote_path, input_type):
          
          directory, allow_nested_files = self._directory_for_file_type(input_type)
          path = get_mapped_file(directory, remote_path, allow_nested_files=allow_nested_files)
          return path
docs: Verify remote_path is in directory for input_type inputs
          and create directory if needed.