Directories

Neutralino's OS API (getPath method): https://neutralino.js.org/docs/api/os#osgetpathname

Names

Name
Type
Description

cwd

string

Current working directory

app

string

App directory

temp

string

System temp directory

data

Promise<string>

System data directory

documents

Promise<string>

System documents directory

pictures

Promise<string>

System pictures directory

music

Promise<string>

System music directory

video

Promise<string>

System video directory

downloads

Promise<string>

System downloads directory

Usage

import { dir } from '@empathize/framework';

// '/tmp'
console.log(dir.temp);

// "$HOME/.local/share" (~/.local/share)
dir.data.then(console.log);

Last updated