ashkulz / NppFTP

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

Local Cache messes up Download of remote file #336

Open Ahrkylien opened 2 years ago

Ahrkylien commented 2 years ago

Description of the Issue

Via the ftp window in a folder called x I created a file called DataField42 (on the server). I opened the this file after creating (now its loaded in my local cache folder (C:\Users\xxx\AppData\Roaming\Notepad++\plugins\config\NppFTP\Cache\pi@192.168.1.20\home\pi\x)) After that I deleted the file called DataField42 and made a folder called DataField42 instead(both on the server, via the ftp window) in folder DataField42 I created a file called 'test', and tried to Download it. It gave me this error: Download of /home/pi/x/DataField42/test failed This is because the file DataField42 is still in my Local cache. After deleting it locally it is fixed.

Steps to Reproduce the Issue

See Description of the Issue

Expected Behavior

The file x/DataField42/test to actually open, regardless my cache

Actual Behavior

Download of /home/pi/x/DataField42/test failed

Debug Information

Notepad++ v8.3.3 (32-bit) Build time : Mar 13 2022 - 17:11:10 Path : C:\Program Files (x86)\Notepad++\notepad++.exe Command Line : Admin mode : OFF Local Conf mode : OFF Cloud Config : OFF OS Name : Windows 10 Home (64-bit) OS Version : 2009 OS Build : 19043.1586 Current ANSI codepage : 1252 Plugins : DSpellCheck.dll HexEditor.dll mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll

chcg commented 1 year ago

Windows filesystem issue for the local cache as folder and filename can't be identical. Additionally the deleted file on the server is not reflected into the local cache.