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"]Something isn't working? Report an issue.
Please visit the official Wolfram Language Reference for more details.