Open
Description
On Windows, the following code:
final String homeDrive = platform.environment['HOMEDRIVE'];
final String homePath = platform.environment['HOMEPATH'];
print(homeDrive);
print(homePath);
print(fs.path.join(homeDrive, homePath));
Outputs the following:
C:
\Users\danny
\Users\danny
The value of HOMEDRIVE
is something that's provided by Windows (without a trailing slash) and is often joined with HOMEPATH
so maybe it makes sense to support it here.