Logo

Programming-Idioms

History of Idiom 212 > diff from v11 to v12

Edit summary for version 12 by blum:
New C# implementation by user [blum]

Version 11

2020-07-25, 17:48:32

Version 12

2021-02-22, 18:13:35

Idiom #212 Check if folder exists

Set boolean b to true if path exists on the filesystem and is a directory; false otherwise.

Idiom #212 Check if folder exists

Set boolean b to true if path exists on the filesystem and is a directory; false otherwise.

Variables
b,path
Variables
b,path
Extra Keywords
test whether existence
Extra Keywords
test whether existence
Imports
System.IO;
Code
bool b = Directory.Exists(path);
Doc URL
https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.exists?view=net-5.0