Synapse FTP and dir exists lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- xinyiman · 2016-08-18 19:43 Hello guys, who tells me how to tell if on my ftp server there is a directory that I pass as a parameter? For example I want to know if there is monterosa directory. Thank you ---------------------------------------------------------------------- xinyiman · 2016-08-19 08:34 any suggestions? ---------------------------------------------------------------------- rvk · 2016-08-19 09:00 You can issue a .List command with TFTPSend (with NameList=false). All files and directories are in FtpList and you can search your directory in that list. Another option would be to just change to that (existing or not) directory. If it succeeds the directory exists. For example: 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 if FTP.ChangeWorkingDir('/your_desired_directory') thenbegin  // directory found  FTP.ChangeToRootDir;end;