remote-ftp icon indicating copy to clipboard operation
remote-ftp copied to clipboard

Opening remote file creates a file with doubled local path and blank content

Open solonmedia opened this issue 5 years ago • 0 comments

Prerequisites

  • [X ] Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed: https://github.com/icetee/remote-ftp/issues

Description

When attempting to open a remote file via SFTP, the file is properly transferred to the local path but the file that opens in the editor is blank and hovering over the tab yields the correct filename but with the local path duplicated.

e.g. if your local path for the project folder is \share\local\project\remote_file.php - when the file is transferred it will open with the filename of \share\local\project\share\local\project\remote_file.php

Saving the blank file will not overwrite the original (it generally will fail to save) but the remote server will now have a file in a strange location based on the root folder of the remote server with the local path attached before the remote file name.

Steps to Reproduce

Expected behavior: The remote files should get saved at a parallel local location and should open that local copy in the editor.

Actual behavior: The remote file is saved locally to the write location, but the filename that is opened in the editor does not refer to the local copy - but some other fantasy temp copy.

Reproduces how often: [What percentage of the time does it reproduce?]

Versions

Using 1.45.0 x64 of atom Using 2.2.4 version of remote-ftp

solonmedia avatar May 15 '20 02:05 solonmedia