Get list of specific FTP files

Hello,

I’m trying to get a specific listing of files within a FTP session with the ultimate goal of downloading the newest file.

How can I incorporate a Directory.GetFile within the FTP Enumerate Objects activity? Or is there a different way to accomplish this goal?

The default output variable is System.Collections.Generic.IEnumerable<UIPath.FTP.Ftpobjectinfo>. When I use the directory.getfiles, I get an error that UI Path could not find part of the path. In my variable I use “/testing/rpa” for the FTP path and in the activity it is changed to “c:\testing\rpa”

Thanks in advance,
Brad

Captura3


if not work…
Captura4

well i hope helpful

3 Likes

@lean_santiago i tried like what you said.But got error as “Type ftpobjectinfo is not define” for test_file variable…solution for this–>I created one extra variable in same xaml as datatype ftpobjectinfo .even this variable is not related with enumerable object i able to resolved my issue.[no need to change packages ,we can use latest one also]…

Hi @Arjun1

Please make sure to add the UiPath.FTP namespace to your workflow:
image

4 Likes

thanks buddy its working. thank u so much again…:slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.