JonathanTorres\Construct\Helpers\Filesystem::getHomeDirectory PHP Method

getHomeDirectory() public method

Get the home directory.
public getHomeDirectory ( $os = PHP_OS ) : string
return string
    public function getHomeDirectory($os = PHP_OS)
    {
        if (strtoupper(substr($os, 0, 3)) !== 'WIN') {
            return getenv('HOME');
        }
        return getenv('userprofile');
    }