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

TFileStateCache.DirectoryIsWritableCached

Ensures that a cached item has an up-to-date "Directory is Writable" flag.

Declaration

Source position: lazfilecache.pas line 78

public function TFileStateCache.DirectoryIsWritableCached(

  const DirectoryName: string

):Boolean;

Arguments

DirectoryName

  

Name of the directory to examine in the method.

Function result

True if the specified directory is writable in the local file system and in the cache.

Description

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

TFileStateCache.Check

  

Checks the specified cache item to get a specific flag value.

TFileStateCacheItem.Filename

  

Name for the file or directory in the cache item.

TFileStateCacheItem.PhysicalFilename

  

Physical name for the file or directory in the cache item.

TFileStateCacheItem.Flags

  

Contains status flags for the cached file or directory item.


Version 4.0 Generated 2025-05-03 Home