Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/jobs/utils/upload-path

lib/jobs/utils/upload-path

Utility for computing import file paths.

Centralises the path-resolution logic so that individual job handlers do not import node:path directly (which is difficult to mock with tsgo).

Functions

getImportFilePath()

getImportFilePath(filename): string

Return the absolute path to an import file given its filename.

Uses the UPLOAD_DIR environment variable (defaulting to "uploads") and resolves relative to process.cwd().

Parameters

filename

string

Returns

string

Last updated on