Skip to content

appDataDir ​

appDataDir returns an application-specific subdirectory of dataDir for app.

SignatureappDataDir(app: string): string
tyrus
import { appDataDir } from "tyrus:os";

const dir: string = appDataDir("my-app");
print(dir);

Never fails the program

Falls back to an empty string if it cannot be determined, rather than aborting the program.