jobPath: get the filesystem path for a job

Description Usage Arguments Details Value

Description

get the filesystem path for a job

Usage

1

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


jbrzusto/motus-R-package documentation built on May 18, 2019, 7:03 p.m.