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
}
}
loginerror
(Maciej Kuźmicz)
February 22, 2019, 1:27pm
2
Hi @Ruben_Garcia
I believe this solution should work here:
Loop the collection with “For each”.
Define the TypeArgument as “UiPath.FTP.Objectinfo” in For Each activity.
You can then get filenames with “item.Name” within the loop
2 Likes
Bhushan_1718
(Santhi Bhushan Jangam)
October 30, 2020, 11:45am
3
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