WLJS LogoWLJS Notebook

ExpandFileName

ExpandFileName["name"] expands name to an absolute file path for your OS.

Examples

Expand home directory:

ExpandFileName["~/Documents"]
(* "/Users/username/Documents" *)

Expand relative path:

ExpandFileName["./data"]

Please visit the official Wolfram Language Reference for more details.

On this page