File/folder exists

Last updated

Last updated
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");