I think the issue is the way the Dir() function is used. Dir() lists files and directories on a (windows) file system, not on a FTP server.
Like Jooel says, ftp is standardized. it works (almost) the same on a windows server as ona a Unix or Linux server. Maybe except for those things that are filesystem specific.
  • On Windows, "directory" is the same as "Directory"
  • Unix/Linux is CaSe SeNsItIvE, "directory" and "Directory" will be different
  • On Windows,
    cd ResKit/win2000
    and
    cd ResKit\win2000
    both work
  • On Unix/Linux, I presume only forward slashes ("/") are valid