Originally this function expanded to the home however on WIN32 functionality changed to return the default Documents directory & the function was renamed. Always expand "~" to the users home directory since that's what it represents when used at the beginning of a path.