Include directory in temporary file name when editing

Advertisement

cnasal
Joined:
Posts:
2
Location:
Fredericksburg, Virginia US

Include directory in temporary file name when editing

I use WinSCP a lot while working on web sites. I usually connect to a server, and then double click on a file to edit it. Then I make my changes and save it, and WinSCP automatically uploads the file - which is a great feature.

However, while the temporary file name is the same as the file name on the server, the directory is a random name. Therefore, if I am working on two different index.php files, I do not know which one is in which directory - I have to look at the content of the file to figure out which one I am working on. It would be nice if the path on the server was part of the temporary directory. For example, let's say I have the following files in my account on the server:

domains/example.com/index.php
domains/example.com/about.php
domains/example.com/products/index.php

Then, when I opened these with WinSCP, it would be nice if the files were in the following directories:

%TEMP%/scp#####/domains/example.com/index.php
%TEMP%/scp#####/domains/example.com/about.php
%TEMP%/scp#####/domains/example.com/products/index.php

%TEMP% would be the temp directory WinSCP uses for its files and ##### would be the random numbers WinSCP uses for its directories just like it does today. However, by putting the full path, it allows me to know in my editor exactly which file I am editing. It may even be nice to put the server name as part of the path, such as:

%TEMP%/scp#####/myusername@myservername.com/domains/example.com/index.php

Thanks for the great product and wonderful features. It makes my life so much easier.

Merry Christmas!
Carl Nasal

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum