Click or drag to resize

PlaceholderItemIsPlaceholder Method

IT Hit User File System
Determines if the file or folder path represents a placeholder or a regular file/folder.

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 1.4.4298.0
Syntax
public static bool IsPlaceholder(
	string userFileSystemPath
)

Parameters

userFileSystemPath
Type: SystemString
Path to the placeholder item.

Return Value

Type: Boolean
True if the item is a placeholder. False - otherwise.
Examples

The code below is part of 'VirtualFileSystem' C# sample provided with the SDK.

C#
if (!PlaceholderItem.IsPlaceholder(userFileSystemPath))
{
    // Convert regular file/folder to placeholder. 
    // The file/folder was created or overwritten.
    PlaceholderItem.ConvertToPlaceholder(userFileSystemPath, false);
    LogMessage("Converted to placeholder", userFileSystemPath);
}
See Also