import { default } from "https://deno.land/x/document_dir@0.2.0/mod.ts";
Returns the path to the user's document directory.
The returned value depends on the operating system and is either a string,
containing a value from the following table, or null
.
Platform | Value | Example |
---|---|---|
Linux | XDG_DOCUMENTS_DIR |
/home/justjavac/Documents |
macOS | $HOME /Documents |
/Users/justjavac/Documents |
Windows | $USERPROFILE /Documents |
C:\Users\justjavac\Documents |