Home Cooker Classes Others Rice CookerGX
Classes  >  file  >  DirectoryName
file class : DirectoryName getter

Description

Gets a string that represent the absolute path of the parent directory.

Syntax

fileInstance.DirectoryName

Arguments

None

Return value

ClassDescription
stringAbsolute path of the parent directory.

Sample code

//anyFile is a instance of file type.

string parentDirectory = anyFile.DirectoryName;

Notes

It's a wrapper of the System.IO.FileInfo.DirectoryName.

Links for reference

Copyright © Rice All rights reserved.