API Doc says it will return 'directory' if a specified directory exists at the ftp-connection path, but what it will do is adjust the path parent-wise until something does exist, then return 'directory'. This is not how it used to work, and is (useful but) not how its documented.
So, to see if a directory really exists, this code required:
local t = ftpConnection.path
local x = ftpConnection:exists( "name" )
if ftpConnection.path ~= t then -- ancestor directory may exists, but not "name" directory.
... as documented, as before ...
I just have my fights with this ... funny ... ftp implementation. By searching the forum I found your thread but your solution doesn't work either because with LR 3.2 the path is not changed and the exists function allways returns false.
Do you have similar experiences with LR 3.2
rgds - wilko
Let me check. I have had some FTP issues recently but I've no idea what's changed to cause them. Maybe this is one of the things - I'll report back.