directory class : directory(string) fitter

Description

Return a directory type instance that is initialized by the path to the directory.

Syntax

new directory(string pathToDirectory)

Arguments

ClassNameDescription
stringpathToDirectoryA path to any directory

Return value

ClassDescription
directoryA directory type instance that is initialized.

Sample code

1:

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

Notes

It's a wrapper of the System.IO.DirectoryInfo.DirectoryInfo(String) constructor.

Links for reference

Copyright © Cooker All rights reserved.