DocsAdvancedProject Workspace, Sandbox & Files
Project Workspace, Sandbox & Files
Automatic multi-OS per-project workspace, portable paths (files://, output://, run://), the Get Workspace Path node, sandbox security modes, TTL cleanup, and Cloud / BYOS file sync.
To avoid hardcoded machine-specific paths (such as C:\Users\... or /home/runner/...), every project in LIA automatically receives a multi-OS Project Workspace created and resolved transparently across Windows, macOS, and Linux / Docker.
Automatic per-project directory layout
On every run, the runner prepares the project's isolated directory using the operating system's standard data location (overridable via the LIA_WORKSPACES_DIR environment variable):
- Windows:
%LOCALAPPDATA%\LIA\workspaces\<project_id>
- macOS:
~/Library/Application Support/LIA/workspaces/<project_id>
- Linux / Docker:
${XDG_DATA_HOME:-~/.local/share}/lia/workspaces/<project_id>
Inside the workspace, four standard subdirectories are created:
files/: persistent project assets (templates, Excel sheets, CSVs, documents). Automatically synced from LIA Cloud (or your BYOS bucket) before each execution.
output/: persistent deliverables generated by the workflow (bank batch files, reports, PDFs).
runs/<run_id>/: per-execution isolated folder so concurrent runs never collide.
temp/: disposable temporary files.
Portable paths and the Get Workspace Path node
All file, Excel, Word, ZIP/Archive nodes and Request Human Approval's Attachment Paths support portable path resolution without hardcoding OS-specific directories:
- Smart relative paths: writing
files/template.xlsx or output/batches/payments.txt automatically resolves inside the project workspace instead of relying on an unpredictable working directory.
- Virtual schemes:
workspace://..., files://template.xlsx, output://report.pdf, run://draft.json, or temp://cache.csv.
- Injected system variables:
$workspace, $files, $output, $run_dir, and $temp are automatically injected into the runtime context.
Get Workspace Path pure node (Folder And Files category, added in v1.0.9): pick a Scope (project, files, output, run, or temp) and an optional Subpath (e.g. batches/payments.txt) with Ensure Parent enabled to output the resolved OS-native path on Path (plus Workspace Dir and Run Dir), ready to wire into Create Folder, Write Text File, Save Workbook, or Request Human Approval.
Get Workspace Path node outputs
The node exposes three String output pins (all resolved as OS-native absolute paths for the active runner):
| Output | What it returns | Example (Scope = output, Subpath = batches/payments.txt) | When to use it |
|---|
Path | The exact resolved path combining the chosen Scope and Subpath (if Subpath is blank, returns that scope's folder). | .../workspaces/<project_id>/output/batches/payments.txt | Primary output: wire directly into Write Text File, Create Folder, Open Workbook, Save Document, or Request Human Approval. |
Workspace Dir | Always the project root folder, regardless of the selected Scope or Subpath. | .../workspaces/<project_id> | When you need the project's base directory for external scripts (Run Command), AI agent tools, or logging. |
Run Dir | Always the isolated folder for the current run, unique to this run_id and automatically cleaned up after the TTL expires. | .../workspaces/<project_id>/runs/<run_id> | When running concurrent executions and you need per-run scratch files that never collide with other runs. |
Full backward compatibility
In the default hybrid mode, existing workflows that still reference explicit absolute paths (like C:/exports/...) continue working unchanged, while relative paths and virtual schemes stay safely scoped inside the workspace.
Sandbox security and automatic TTL cleanup
Runner administrators can tune isolation and disk hygiene through environment variables:
LIA_SANDBOX_MODE=hybrid (default): blocks path-traversal escapes (..) on relative and virtual paths while allowing explicit absolute paths when workflows must interact with corporate shares or local software folders.
LIA_SANDBOX_MODE=strict: blocks all filesystem access outside the project workspace unless explicitly allow-listed in LIA_ALLOWED_PATHS (;-separated on Windows, :-separated on macOS/Linux).
LIA_WORKSPACE_TTL_DAYS=7: automatic lazy cleanup on run startup that purges stale folders under runs/ and temp/ while always preserving files/ and output/.
Cloud Project Files & Bring Your Own Storage (BYOS)
From the web editor, open File → Project files to upload templates, spreadsheets, or static assets (optionally organized into subfolders like templates/banks):
- SHA-256 differential sync: before executing a workflow, the runner checks the project manifest and downloads only new or modified files into
<workspace>/files/, leaving any local-only runner files untouched.
- One-click portable path copy: each file includes a Copy path button (e.g.
files/templates/layout.xlsx) ready to paste directly into any node input.
- Unified quota & BYOS: project files reuse the same dual storage engine as approval attachments — LIA Managed Cloud Storage (counted toward the organization plan quota) or your own AWS S3 / Cloudflare R2 / MinIO bucket configured under Settings → Storage without consuming LIA Cloud quota.