Copy files with file length greater than 260 characters

Hi
Welcome to uipath community
Hope these steps would help you resolve this
—use a assign activity like this where get the file path of all files from a folder which we are going to check with the length of Charta tees and then copy them to another folder
arr_files = Directory.GetFiles(“yourfolderpath”)
Where arr_files is a variable of type array of string

—now use a FOR EACH activity and pass the above variable as input and change the type argument as string in the property panel
—inside the loop use a IF condition like this
item.ToString.Length>260
If true it will go to THEN apart where we can use MOVE File or copy file activity with filepath to be moved as item.ToString and mention the destination folder path

Cheers @stephenmarri

1 Like