0 votes
1 view
in RPA by (5.3k points)

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. 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

1 Answer

0 votes
by (9.5k points)

I think the issue might be in not including full path, use the full path to the directory or UIPath will automatically append your partial path.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !