function outputDirectory()

in src/algebraic-types.ts [266:278]


function outputDirectory(
  directoryRunFrom: string,
  outputPath: string | undefined,
): File.AbsoluteFilePath | null {
  if (outputPath === undefined || outputPath === '') {
    return null;
  } else {
    return PathUtils.getAbsolutePathFromDirectoryAndAbsoluteOrRelativePath(
      File.getAbsoluteFilePath(directoryRunFrom),
      outputPath,
    );
  }
}