machine-share icon indicating copy to clipboard operation
machine-share copied to clipboard

Importing from different directory than where import file in causes server name to include all folder names

Open pydolan opened this issue 6 years ago • 1 comments

If I import in the following manner: machine-import home/myfiles/machine1.zip, in .docker/machine/machines, the folders home/myfiles/machine1 are created.

I initially thought the problem was as described in #6 since this was a server with no docker machines yet, but I used the mkdir command mentioned there, and still got an error about config.json not existing. But in my case, it was saying it didn't exist in ".docker/machine/machines/home".

The workaround was to just cd to the directory (e.g. home/myfiles) before running machine-import.

pydolan avatar Sep 14 '17 16:09 pydolan

Faced the exact same problem today. Fix should be easy enough by just taking the actual filename (without the preceding path) in https://github.com/bhurlow/machine-share/blob/master/import.js#L29

burnedikt avatar Jul 27 '18 20:07 burnedikt