File/folder exists

Element that checks for a file or folder

Properties

- Path*: [String] Path to a verifiable entity (c:\folder\file.txt)

- Variable*: [Boolean] Variable being a test result receiver

- Search for a folder: [Boolean] Folder search sign

C#
bool f = System.IO.File.Exists(@"C:\text.txt");
bool d = System.IO.Directory.Exists(@"C:\Dir");

Python
f = System.IO.File.Exists("C:\\text.txt")
d = System.IO.Directory.Exists("C:\\Dir")

JavaScript
var f = _lib.System.IO.File.Exists("C:\\text.txt");
var d = _lib.System.IO.Directory.Exists("C:\\Dir");

Last updated