randy3k / remote-atom

rmate for atom
https://atom.io/packages/remote-atom
MIT License
85 stars 16 forks source link

Opening a file using a relative path starting with a parent folder symbol #6

Closed aumo closed 10 years ago

aumo commented 10 years ago

Hello,

When trying to open a file with the rmate client, if the path starts with a parent folder symbol, it will be repercuted on the host side. For example:

rmate ../my_file

will save the temp file in

/var/folders/mb/lts7vzm559z283l9r_s3_pfh0000gn/T/my_file

instead of

/var/folders/mb/lts7vzm559z283l9r_s3_pfh0000gn/T/PBlSdi5iEX/my_file

That will still work but

rmate ../../../my_file

will fail as Atom does not have the writing permission for /var/folders/mb/.

P.S. I'm using remote-atom on OSX.

randy3k commented 10 years ago

Should be fixed now.

aumo commented 10 years ago

It does, thank you.