TFileStateCache.DirectoryIsWritableCached function
Ensures that a cached item has an up-to-date "Directory is Writable" flag.
Declaration
function DirectoryIsWritableCached(const DirectoryName: string)
: BooleanDescription
DirectoryIsWritableCached ensures that the specified directory
has an up-to-date value for its "Directory is Writable" flag in the cache. It
calls
Check to use a valid flag value for an existing
TFileStateCacheItem instance in the cache. If the return value from
Check is
True, no additional actions are performed in the method.
Otherwise, the flag value was not present for the specified cache item. The
DirectoryIsWritable routine is called to determine if the directory
allows new entries to be created in the path. SetFlag is called to
update the fsciDirectoryWritable flag for the cache item with the
given name.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
