ashkulz / NppFTP

Plugin for Notepad++ allowing FTP, FTPS, FTPES and SFTP communications
https://ashkulz.github.io/NppFTP/
323 stars 93 forks source link

Include profile name in global cache path #346

Open mihinator opened 2 years ago

mihinator commented 2 years ago

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.

chcg commented 2 years ago

@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?

mihinator commented 2 years ago

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!

chcg commented 2 years ago

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