We just migrated our FTP site to Windows Server 2016. When using tcl package FTP, or just entering a command at the command line in an FTP session, using an asterisk on a list command to check for the existence of a directory returns nothing. Using a trailing asterisk on a DIR command inside a directory and checking on the existence of a file works correctly. It is only failing when you are trying to determine whether a certain directory exists, and the only items in the current directory are sub-directories. This used to work in the previous version of our FTP server, I think it was Windows Server 2008.
Has anyone encountered this?
Our tcl script is an archival process which runs daily, and creates a new sub-directory for each month – example name: archive_201805
So it checks to see if the sub-directory is already there and if so, then skips the command to create a new sub-directory, otherwise it creates it. Again, this runs every day, so it only needs to create the sub-directory once.
I guess I could modify the script to just issue the create directory command and handle the error, but possibly this functionality could be more important in other situations.