File.exists directory.exists different?

What is different from each other??

Hi @sumshine

File. Exist is the member of UiPath.Core.Activities.FileExistsX which itself explicitly defined for UiPath activities for StudioX.

While directory.exists is the member of System.IO.Directory.Exists. It is available in dot net method, unlike File.Exists, it is of type Boolean.

hello , I’m a beginner and I don’t know what you mean. Are both used to determine the existence of a file? So isn’t it the same?

Yes… Kinda same… but only difference is their DataType

1 Like

thank you my friend

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