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