Ticket #239 (new defect)

Opened 4 years ago

Last modified 2 years ago

Unable to save

Reported by: Djokx Owned by:
Priority: major (affects peripheral workflow) Milestone: 0.9.x Bug sprint
Component: authentication Version: 0.7.4
Keywords: save, file, windows 7 Cc:

Description

Hi,
I just installed Swish this morning and it seems to be an awesome tool!
But when I try to save a file (.html for exemple) in Sublime Text 2, it can't save the file. I've an error message like: "Unable to save E:/TEMP/.../file.html"

Any idea ?
Thanks! :)

Change History

comment:1 Changed 4 years ago by anonymous

  • Keywords file, windows 7 added; file removed

comment:2 Changed 4 years ago by alamaison

Swish opens your files by copying the file to your local temp directory and invoking your chosen program on that file. Swish also marks the file as read-only, which many programs (notepad, for instance) interpret as meaning that the file cannot be saved. This tells the program to show the 'Save As' dialog instead of 'Save'.

This is exactly the same as the way the in-built FTP or Zip folders work in Windows, but Sublime Text 2 doesn't seem to follow the convention. To double-check, what does Sublime Text 2 do if you open a .html file that has been put in a Compressed Folder (ZIP) on your local hard disk?

comment:3 Changed 4 years ago by raphy3

Hi, I think this copying to temp folder and then invoking save-as is antiquated behavior and will lead to confusion for a lot of users who are looking to use their own sftp directories at home combined with Swish as replacement for things like google drive or dropbox. Why not make the file save back to the sftp directory? Otherwise, every time the user wants to update a file, he has to save in a new directory somewhere on his machine, and then manually copy it back over to the sftp directory and overwrite the old file. This essentially removes the convenience of having the sftp directory mounted as if it was a local folder.

comment:4 Changed 3 years ago by cloud.adm@gmail.com

Is it possible even open files in sublime from swish mount ?

comment:5 follow-up: ↓ 6 Changed 3 years ago by khopkins

alamaison, after editing the file, and doing a "save as" with the same filename fails because the file is read-only. Saving with a new file name does not transfer the new file back to the host. How is this supposed to work?

comment:6 in reply to: ↑ 5 Changed 3 years ago by alamaison

Replying to khopkins:

Saving with a new file name does not transfer the new file back to the host. How is this supposed to work?

Currently you have to save the file and manually copy it back. We would like for Swish do that automatically (which removes the need to mark the file read only) once someone writes the code to do that.

comment:7 Changed 2 years ago by jigarshah48@gmail.com

I'm Agree with above comments.

e.g. I've a Excel file, and If I change that file and hit Save button, it should automatically save to the same file directly the way we are working in local machine.

comment:8 Changed 2 years ago by jigarshah48@gmail.com

I found the alternative as :  http://ftpbox.org/
Something like your own Dropbox with SFTP or FTP.
Love this one.

Note: See TracTickets for help on using tickets.