jobPath: get the filesystem path for a job

View source: R/jobPath.R

jobPathR Documentation

get the filesystem path for a job

Description

get the filesystem path for a job

Usage

jobPath(j)

Arguments

j

the job

Details

If a job has a filesystem folder, its path is a non-null character string giving the path to that folder relative to the path to its parent job.

If the job does not have a filesystem folder, this function returns the path of the most recent ancestor which does have a filesystem folder.

This function uses an SQLite recursive common table entity query to generate the path on the fly from the $path components of this jobs and its ancestors. This traces the job up to its top job, pre-pending non-null path components as it goes.

Value

A character scalar giving the full path to the job's folder, or to the most recent ancestor's folder if this job doesn't have one. To test whether a job has a folder, use


MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.