directory class : Parent getter

Description

Gets the parent directory.

Syntax

directoryInstance.Parent

Arguments

None

Return value

ClassDescription
directoryThe parent directory of the invoker.

Sample code

1:

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

2:

directory parentDirectory = dir.Parent;

Notes

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

If there is no parent, return uninitialized instance of the directory class.

Links for reference

Copyright © Cooker All rights reserved.