Original post

So here is my delemia,
I am working on a fork of https://github.com/cdr/sshcode, the goal is to make window supported

the problem is that when windows sends a path, i have narrowed it down to the issue being that windows sends the path string as a litteral path,
so the path ~/whatever is sent as '~'/whatever which is technically a “valid” path

I want to implement into the code a check

if runtime.GOOS = windows {
    // get remote $HOME variable    
    //replace ~ with $HOME in all strings