FTP - Enumerate Object Activity Giving Error

@anoop.mohandas

Do you happen to know what is your FTP server hosted on? Is it a Windows or a Linux server? And what would be the provider?

I am trying to reproduce this and the only way I can is by using a Linux server and a file type that isn’t supported, so not a file, not a directory and not a syslink.

I was not able to reproduce this on a Windows server yet, but I would assume that the reason is the same. Currently the FTP activity package only supports the following types of objects:

namespace FluentFTP;

//
// Summary:
//     Type of file system of object
public enum FtpObjectType
{
    //
    // Summary:
    //     A file
    File,
    //
    // Summary:
    //     A directory
    Directory,
    //
    // Summary:
    //     A symbolic link
    Link
}

And it throws an exception for any other type:

My current guess is that this occurs due to some hidden unsupported objects that are present in a folder for certain FTP servers (most likely Windows ones).