How can I extract items from an FtpObjectInfo and save them to an array?

I have created a list of FtpObjectInfo which yields a list of 28 items like the one shown below. I’m trying to extract all the “FullName” keys and save the values in an array for iteration.

I have tried several methods but none of them seem to be able to extract the information.

Does anybody have a clue?

List(28)
{
FtpObjectInfo
{
Created=[01/01/0001 00:00:00],
FullName=“/LFSGB_CLOUD_TO_CLOUD”,
GroupPermissions=Execute,
Write,
Read,
Modified=[02/18/2019 17:52:59],
Name=“LFSGB_CLOUD__TO_CLOUD”,
OthersPermissions=Execute,
Write,
Read,
OwnerPermissions=Execute,
Write,
Read,
Size=1,
Type=Directory
}
}

Hi @Ruben_Garcia

I believe this solution should work here:

2 Likes

Hey @Ruben_Garcia,

Check out this link, Get list of specific FTP files

Happy Automation.

Thanks

Ressurrecting this thread - anyone knows how you’re able to get the items inside ftpobjectinfo?

e.g one of them is ftpobjectinfo.fullname, or ftpobjectinfo.lastmodified

is there a full listing showing what i can get from it?

edit: nvm, i got my ans

posting in case someone needs: you can get it from looking up ftplistitem members - from the System.Net.FtpClient namespace

1 Like