Selective Download Files

Hi phpStormers,

I have what seems a really basic question that I seem to be having trouble with, I hope someone can help.

I work on a remote Server via SFTP, the files I need are dotted all over the place, /var, /home/user & /opt/openitc.  In netbeans I set the project root to / and right clicked on the files or folders I wanted and just downloaded these files to the IDE, worked on them and changes are automatically synced back.

So in phpStorm, I did the same set the project root to / by default excluded everything from download then was hoping to use the "Remote Host" panel to download the files I'm interested in for local download.  

However the issue is the download from here option is then not listed, even if I remote the path from excluded, I was expecting an option to say download this file/directory and it would create a local structure to match this.

So does anyone know if there is a way to selectively sync files in phpStorm.

0

Unfortunately you can't just browse a remote host and selectively download files from there.

You would need to upload/sync your local project with a remote host first: IDE should be able to correlate local files with its copies on a remote host.

Here's how Browse remote hosts works in short: https://www.jetbrains.com/help/phpstorm/2016.3/remote-host-tool-window.html

1

Thanks Dmitry,

Just to clarify I created the project file > New project from existing files > webserver on remote host files accessible from SFTP

Looking at the documentation, I would expect the "Download from here" option to be listed to pull over the remote files, but it's not.

However I then pulled back the first file manually using WinSCP putting it into a mirror of the remote structure.  So there is now one file in the project.

Now magically the "Download from here" option is available for all the directories on my remote server, I don't know if I've found a bug where the download option doesn't work unless you have at least one file synchronized but it's clearly working now.

I will see if I can reproduce it.

0

Thanks, ideally it would be great if you could go through all the steps of "Create New Project: ... " with screenshots & comments taken. This way we could see what exactly went wrong there.

0

请先登录再写评论。