storing directory in shortcut files (8 posts)

mert Member

I would like to save a shortcut file to my desktop to provide easy access to my remote server. I can select save as when I have the connection open, and I can save a shortcut file, but it does not keep the directory information in the file. when I double click on the shortcut, I open the root directory of the server, not the subdirectory. Shortcuts saved within fetch, however, do keep the directory info. Is there any way to keep the directory info in these files? Thanks
M

Scott McGuire Administrator

Hi,

Which version of Fetch do you have? Fetch should save the directory information in the shortcut document.

Just to double-check, here are the steps to follow for Fetch 4 or Fetch 5:

* Connect to the server.
* Navigate to the directory you want the shortcut to open to; make sure the file list for the directory you want is showing in the Fetch window.
* Choose "Save Shortcut" from the "File" menu.
* Choose the location and name for your shortcut file.

Try opening the shortcut file. If it still does not open to the correct location, please let us know and we'll look into it further.

mert Member

I have fetch 5.0.5. I did some more experimenting and I found that I cannot create a shortcut file to my home directory (on the remote machine) but I CAN create a shortcut file to a subdirectory of my home dir. Shortcuts in the fetch shortcuts list seem to work correctly though.

I opened the shortcut files with 'less' and I found that if I make a shortcut to the remote directory '/home/mthon/projects' the file actually stores:
DIR sftp://mthon:@azul.tamu.edu/projects/
which is somehow interpreted with the full path
a shortcut to my remote home directory is stored as
DIR sftp://mthon:@azul.tamu.edu/
which is interpreted as the root (/) directory on the remote machine.
cheers
Mike

Scott McGuire Administrator

Originally posted by mert:

iif I save shortcut to /home/mthon/ the shortcut window diplays no path.
this one behaves normally in the window but defaults to "/" when used as a file.

Hi Mike,

We'd like to see a transcript when you use a shortcut to your home folder and you end up in the root folder instead, so we can figure out why you're ending up in the wrong folder. Could you please do the following?

* Create a shortcut that misbehaves, as you describe above.
* Open the shortcut.
* Choose Fetch Transcript from the Window menu
* Copy the entire contents of the transcript window, and paste them here.

Scott McGuire Administrator

Hi Mike,

Thanks for the transcript. It looks like you found a bug in Fetch - thanks very much for brining it to our attention and providing the information that helped us locate it. We will fix it in a future release of Fetch.

There are two possible workarounds for you for now:

* Just create a shortcut file to a subfolder of your home folder. Those should work correctly.

* If you really want a shortcut file to your home folder, after you create the shortcut file to your home folder in Fetch, open it in a text editor (such as BBEdit or TextWrangler) and edit it to say the following: