Click or drag to resize

ProjectedFileSystemGetOnDiskFileState Method

Gets the on-disk file state for a file or directory.

Namespace:  ShellBoost.Core.ProjFS
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static PRJ_FILE_STATE GetOnDiskFileState(
	string filePath
)

Parameters

filePath
Type: SystemString
A string specifying the full path to the file whose state is to be queried.

Return Value

Type: PRJ_FILE_STATE
A value indicating the state of an item.
Remarks
This routine tells the caller what the ProjFS caching state is of the specified file or directory. For example, the caller can use this routine to determine whether the given item is a placeholder or full file. A running provider should be cautious if using this routine on files or directories within one of its virtualization instances, as it may cause callbacks to be invoked in the provider. Depending on the design of the provider this may lead to deadlocks.
See Also