get_relative_to_workdir: Normalize file path to the working directory

get_relative_to_workdirR Documentation

Normalize file path to the working directory

Description

On Windows we may run into the MAX_PATH file path limit when referencing files using the absolute path. This method will normalize the file path to the working directory which _may_ be shorter.

Usage

get_relative_to_workdir(fqfn)

Arguments

fqfn

The full path of the file to normalize.

Value

A relative path to fqfn from the current working directory given by getwd().


JGCRI/gcamdata documentation built on March 21, 2023, 2:19 a.m.