Disk And Directory Support Routines

From RAD Studio
Jump to: navigation, search

Go Up to API Categories Index

This topic lists all routines used in disk and directory management.

Routine Description

System.ChDir

Changes the current directory.

System.IOUtils.TDirectory.Copy

Copies a directory and its contents.

System.SysUtils.CreateDir

Creates a new directory.

System.IOUtils.TDirectory.CreateDirectory

Creates a new directory at the given path.

System.IOUtils.TDirectory.Delete

Deletes a directory at the given path.

System.SysUtils.DeleteFile

Deletes a file from disk; deletes a file whose name is an ANSI string.

System.SysUtils.DiskFree

Returns the number of free bytes on a specified drive.

System.SysUtils.DiskSize

Returns the size, in bytes, of a specified drive.

System.IOUtils.TDirectory.Exists

Checks whether a given directory exists.

System.SysUtils.FileSearch

Searches a specified directory path for a file.

System.SysUtils.FindClose

Releases memory allocated by FindFirst.

System.SysUtils.FindFirst

Searches for the first instance of a file name with a given set of attributes in a specified directory.

System.SysUtils.FindNext

Returns the next entry matching the name and attributes specified in a previous call to FindFirst.

System.SysUtils.ForceDirectories

Creates a new directory, including the creation of parent directories as needed.

System.IOUtils.TDirectory.GetAttributes

Returns the directory attributes.

System.IOUtils.TDirectory.GetCreationTime

Returns the creation time of a directory.

System.IOUtils.TDirectory.GetCreationTimeUtc

Returns the creation time of a directory in UTC (Coordinated Universal Time) time zone.

System.SysUtils.GetCurrentDir

Returns the name of the current directory.

System.IOUtils.TDirectory.GetCurrentDirectory

Returns the current working directory.

System.GetDir

Returns the current directory.

System.IOUtils.TDirectory.GetDirectories

Returns a list of subdirectories in a given directory.

System.IOUtils.TDirectory.GetDirectoryRoot

Returns the root directory for a given path.

System.IOUtils.TDirectory.GetFiles

Returns a list of files in a given directory.

System.IOUtils.TDirectory.GetFileSystemEntries

Returns a list of files and subdirectories in a given directory.

System.IOUtils.TDirectory.GetLastAccessTime

Returns the last access time of a directory.

System.IOUtils.TDirectory.GetLastAccessTimeUtc

Returns the last access time of a directory in UTC (Coordinated Universal Time) time zone.

System.IOUtils.TDirectory.GetLastWriteTime

Returns the last write time of a directory.

System.IOUtils.TDirectory.GetLastWriteTimeUtc

Returns the last write time of a directory in UTC (Coordinated Universal Time) time zone.

System.IOUtils.TDirectory.GetLogicalDrives

Returns a list of all logical drives present on this computer.

System.IOUtils.TDirectory.GetParent

Returns the parent directory of another directory.

System.IOResult

Returns the status of the last I/O operation performed.

System.IOUtils.TDirectory.IsEmpty

Checks whether a given directory is empty.

System.IOUtils.TDirectory.IsRelativePath

IsRelativePath indicates whether the specified path is a relative path.

System.MkDir

Creates a new subdirectory.

System.IOUtils.TDirectory.Move

Moves or renames a directory and its contents.

System.SysUtils.RemoveDir

Deletes an existing empty directory.

System.RmDir

Deletes an empty subdirectory.

System.IOUtils.TDirectory.SetAttributes

Sets the directory attributes.

System.IOUtils.TDirectory.SetCreationTime

Changes the creation time of a directory.

System.IOUtils.TDirectory.SetCreationTimeUtc

Changes the creation time of a directory.

System.SysUtils.SetCurrentDir

Sets the current directory.

System.IOUtils.TDirectory.SetCurrentDirectory

Sets the current directory.

System.IOUtils.TDirectory.SetLastAccessTime

Changes the last access time of a directory.

System.IOUtils.TDirectory.SetLastAccessTimeUtc

Changes the last access time of a directory.

System.IOUtils.TDirectory.SetLastWriteTime

Changes the last write time of a directory.

System.IOUtils.TDirectory.SetLastWriteTimeUtc

Changes the last write time of a directory.



See Also