JCL Help:DirectoryExists
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: DirectoryExists Function
Search in JCL Help
Search in all projects
Summary
Determines whether a directory exists.
Pascal
function DirectoryExists(const Name: string; ResolveSymLinks: Boolean = True): Boolean;
Parameters
Parameters | Description |
const Name: string | The directory to check for existence. If Name is not fully qualified it is interpreted as relative to the current directory. |
Return Value
If the directory exists the function returns True, otherwise it returns False.
Description
DirectoryExists determines whether the specified directory exists.
About
Unit
Donator
Anonymous (Win32)
Contributors
Robert Rossmair (Unix)
Notes
This function is a replacement for the FileUtils.DirectoryExists function from the Delphi RTL to avoid dependency on that particular unit. There's nothing wrong with that function except that the unit uses Forms etc. which add significant resources and startup time to your application (if it doesn't use these units already).
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page