Back

Explore Courses Blog Tutorials Interview Questions
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

0 votes
1 answer
0 votes
1 answer
asked Jul 13, 2019 in RPA by Abhishek_31 (12.8k points)
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...