NppFTP icon indicating copy to clipboard operation
NppFTP copied to clipboard

Include profile name in global cache path

Open mihinator opened this issue 3 years ago • 3 comments

Description of the Issue

Is it possible to include FTP profile name into global cache path using variables like %HOSTNAME%, %USERNAME% etc ? Something like D:/all_webprojects_folder/%PROFILE_NAME%/ Couldn't find a full list of available variables.

mihinator avatar Sep 13 '22 12:09 mihinator

@mihinator Not via the default path. The replacement happens at https://github.com/ashkulz/NppFTP/blob/81e2fec91f4b83a8b131b24687a636ff831b57ba/src/FTPCache.cpp#L324-L349

Currently supported: %CONFIGDIR% %HOSTNAME% %USERNAME% %PORT%

, but you could use the profile specific cache setting. See https://ashkulz.github.io/NppFTP/ -> section Cache paths. Is that sufficient for you needs?

chcg avatar Sep 15 '22 22:09 chcg

It's possible, but not very convenient. The global path is specified once, but profile specific need to be specified for each profile. But thank you for your answer!

mihinator avatar Sep 16 '22 15:09 mihinator

Necessary changes are similar to addition of the port number, see #241

chcg avatar Sep 20 '22 19:09 chcg