directory class : Exists getter

Description

Gets a value that indicates whether the directory is exist.

Syntax

directoryInstance.Exists

Arguments

None

Return value

ClassDescription
boolA value that indicates whether the directory is exist.

Sample code

1:

directory dir = new directory("c:\somewhere...");

2:

bool exist = dir.Exists;

Notes

It's a wrapper of the System.IO.DirectoryInfo.Exists property.

If the directory is already exist, return true. Otherwise, return false.

Links for reference

Copyright © Cooker All rights reserved.