[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Indicates if the specified directory name is writable.
Source position: lazfileutils.pas line 42
function DirectoryIsWritable( |
const DirectoryName: string |
):Boolean; |
DirectoryName |
|
Directory name to examine in the function. |
True if the specified directory is writable.
DirectoryIsWritable is a Boolean function used to determine if the specified directory name is writable in the file system. The path name in DirectoryName must already exist on the local file system. The return value is False if a directory with the specified name does not exist.
The return value is True when a file can be added, deleted, or modified in the specified path. To get the return value, DirectoryIsWritable creates a temporary file in DirectoryName, adds content to it, and deletes the temporary file. DirectoryIsWritable calls the FileCreateUTF8, FileWrite, FileClose, and DeleteFileUTF8 routines to perform the file operations. The return value is True when FileWrite completes successfully.
Remark: | DirectoryIsWritable calls InvalidateFileStateCache with the temporary file name if DeleteFileUTF8 cannot remove the file. |
|
Creates the specified file and returns its file handle. |
|
|
Deletes the specified file name. |
|
|
Signals the OnInvalidateFileStateCache event handler. |
|
Version 3.2 | Generated 2024-02-25 | Home |