'Verify an idealized job runner should actually be able to write to
the specified path - it must be a dataset output, a dataset "extra
file", or a some place in the working directory of this job.
Would like similar checks for reading the unstructured nature of loc
files make this very difficult. (See abandoned work here
https://gist.github.com/jmchilton/9103619.)'

def __check_job_can_write_to_path(self, trans, job, path):

    in_work_dir = self.__in_working_directory(job, path, trans.app)
    allow_temp_dir_file = self.__is_allowed_temp_dir_file(trans.app, job, path)
    if ((not in_work_dir) and (not allow_temp_dir_file) and (not self.__is_output_dataset_path(job, path))):
        raise exceptions.ItemAccessibilityException('Job    is    not    authorized    to    write    to    supplied    path.')
