[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'FileUtil' (#lazutils)

Reference for unit 'FileUtil': Procedures and functions

CompareFilenames

  

Compares two file names to see whether they are equal.

ComparePhysicalFilenames

  

Compares file names after resolving symbolic links.

CopyDirTree

  

Copies all file system entries in a source directory to the destination directory using the specified options.

CopyFile

  

Copies the source file to the destination file using the specified options.

DeleteDirectory

  

Deletes the specified directory (or only its contents when OnlyChildren is True).

ExpandUNCFileNameUTF8

  

Expands the specified UTF-8-encoded UNC file name to an absolute UNC file name.

ExtractShortPathNameUTF8

  

Gets a short path name using the 8.3 notation from the UTF-8-encoded value.

FileIsInDirectory

  

Checks whether the specified file name shares the path specified in Directory.

FileIsInPath

  

Checks whether the specified file name shares the path specified in Path.

FilenameHasPascalExt

  

Indicates whether the specified file name uses a recognized Pascal file extension.

FileSize

  

Gets the size for the specified file name.

FindAllDirectories

  

Stores directory names matching the search criteria in a TStringList class instance.

FindAllFiles

  

Returns the list of files in the specified path matching the search criteria.

FindDefaultExecutablePath

  

Finds the default path to the named Executable file.

FindDiskFileCaseInsensitive

  

FindDiskFileCaseInsensitive - searches for the given FileName in a case insensitive manner.

FindDiskFilename

  

Finds the file name that most closely matches the specified file name.

GetAllFilesMask

  

Gets the file mask representing all files in a file filter.

GetExeExt

  

Returns the file extension (including the starting .) for an executable file on the platform.

ProgramDirectory

  

Gets the directory where the current program is located.

ProgramDirectoryWithBundle

  

Gets the directory for the current executable without the macOS bundle post-fix.

ReadFileToString

  

ReadFileToString - returns a string with the contents of the named file.

SearchAllFilesInPath

  

SearchAllFilesInPath - searches for all files named Filename in the given SearchPath using the supplied BasePath with the specified Delimiter and the options listed in Flags.

SearchFileInPath

  

Searches for a file name in a given path using the specified base path and options.


Version 3.2 Generated 2024-02-25 Home