IDirectoryInfo.Root

Syntax

Root: IDirectoryInfo;

Description

The Roop property returns information about a root directory.

Example

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

After executing the example the "d" variable contains creation date and time of the root directory of the disk C.

See also:

IDirectoryInfo