code: def calculate_path(self, remote_relative_path, input_type):
          
          directory, allow_nested_files = self._directory_for_file_type(input_type)
          return self.path_helper.remote_join(directory, remote_relative_path)
docs: Only for used by Pulsar client, should override for managers to
          enforce security and make the directory if needed.