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

Reference for unit 'FileUtil': Procedures and functions

CompareFilenames

  

CompareFileNames - compares two file names to see whether they are equal

ComparePhysicalFilenames

CopyDirTree

CopyFile

  

CopyFile - copies Source file to Destination file, optionally preserving the timestamp of the original file

CreateAbsolutePath

CreateAbsoluteSearchPath

  

CreateAbsoluteSearchPath - concatenates BaseDirectory and SearchPath to form an absolute path to search for files

DeleteDirectory

  

DeleteDirectory - Delete the named directory (or only its contents if OnlyChildren is True)

ExpandUNCFileNameUTF8

ExtractFileNameWithoutExt

  

ExtractFileNameWithoutExt - returns just the name of the file without an extension

ExtractShortPathNameUTF8

FileIsInDirectory

  

FileIsInDirectory - checks whether a file with FileName exists within the given Directory

FileIsInPath

  

FileIsInPath - checks that FileName refers to a file that exists within the given Path

FilenameIsPascalUnit

  

FilenameIsPascalUnit - checks that the supplied name is a correct Pascal unit name

FileSize

  

FileSize - finds the size of the named file

FindAllDirectories

FindAllFiles

  

Returns the list of found files in the specified path according to passed options.

FindDefaultExecutablePath

  

FindDefaultExecutablePath - finds the default path to the named Executable file

FindDiskFileCaseInsensitive

  

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

FindDiskFilename

  

FindDiskFilename - finds the file that best fits the supplied filename

GetAllFilesMask

  

File mask representing all files suitable for showing in a file filter.

GetExeExt

  

GetExeExt - find the correct extension (including the starting .) for an executable file

ProgramDirectory

  

ProgramDirectory - returns the directory in which the currently running program resides

ProgramDirectoryWithBundle

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

  

SearchFileInPath - searches for Filename in the given SearchPath using the supplied BasePath with the specified Delimiter and the options listed in Flags

The latest version of this document can be found at lazarus-ccr.sourceforge.net.