jFTPClient download lazarus / 43-Android ---------------------------------------------------------------------- dseligo · 2023-12-15 04:07 I download remote files with jFTPClient component like this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ftp.Download(MyServerPath + MyFile, Self.GetEnvironmentDirectoryPath(DirDownloads)+ '/' + MyFile); If MyFile doesn't exist on remote server then OnDownload event is called with success set as False (as expected). Only, the empty file named MyFile is created in location Self.GetEnvironmentDirectoryPath(DirDownloads). Is this expected? I just delete the file in case 'success' is False, but I am not sure if this is a bug or is it some Android feature. ---------------------------------------------------------------------- Mongkey · 2023-12-16 14:15 You could consider checking filesize, you could do on listing file or just like as on your case, empty file, if it is empty then delete by code. Thank you ---------------------------------------------------------------------- dseligo · 2023-12-16 14:57 Quote from: Mongkey on December 16, 2023, 03:15:52 pmYou could consider checking filesize, you could do on listing file or just like as on your case, empty file, if it is empty then delete by code. Yes, I delete it by code, it's easiest for me.