yongkangchen / remote-sync

Upload your files to remote host after every change. Both SCP/SFTP and FTP are supported.
https://atom.io/packages/remote-sync
MIT License
237 stars 71 forks source link

Use relative path for watched files in .remote-sync.json #485

Open liuderchi opened 6 years ago

liuderchi commented 6 years ago

It would be more convenient to support relative path in watch field.

For example if I have

// .remote-sync.json
{
  "watch": [
    "./index.html",
    "main.css"
  ]
}

with Project Folder to be ~/MY-PROJECT

I would expect it to watch ~/MY-PROJECT/index.html and ~/MY-PROJECT/main.css

But it turns out watching ~/MY-PROJECT./index.html and ~/MY-PROJECTmain.css and throws Error

berteh commented 6 years ago

same problem by me. would need adding a directory separator between the project working directory and the watched file name.