IDirectoryInfo.Parent

Syntax

Parent: IDirectoryInfo;

Description

The Parent property returns information about a parent directory.

Example

Sub UserProc;
Var
    Dir, RootDir: IDirectoryInfo;
    d: DateTime;
Begin
    Dir := New DirectoryInfo.Attach("c:\Temp\1");
    If Dir.Exists Then
        RootDir := Dir.Parent;
        d := RootDir.CreationTime;
    End If;
    Dispose Dir;
End Sub UserProc;

After executing the example, the "d" variable contains creation date and time of the Temp folder.

See also:

IDirectoryInfo