IT Hit User File System
Allows filtering file system items.
Namespace:
ITHit.FileSystem
Assembly:
ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 8.4.27341.0
Syntax public abstract Task<bool> FilterAsync(
SyncDirection direction,
OperationType operationType,
string userFileSystemPath,
FileSystemItemType itemType,
string userFileSystemNewPath,
IOperationContext operationContext
)
Public MustOverride Function FilterAsync (
direction As SyncDirection,
operationType As OperationType,
userFileSystemPath As String,
itemType As FileSystemItemType,
userFileSystemNewPath As String,
operationContext As IOperationContext
) As Task(Of Boolean)
public:
virtual Task<bool>^ FilterAsync(
SyncDirection direction,
OperationType operationType,
String^ userFileSystemPath,
FileSystemItemType itemType,
String^ userFileSystemNewPath,
IOperationContext^ operationContext
) abstract
abstract FilterAsync :
direction : SyncDirection *
operationType : OperationType *
userFileSystemPath : string *
itemType : FileSystemItemType *
userFileSystemNewPath : string *
operationContext : IOperationContext -> Task<bool>
Parameters
- direction
- Type: ITHit.FileSystemSyncDirection
Indicates synchronization direction. - operationType
- Type: ITHit.FileSystemOperationType
File system operation type: OperationType. - userFileSystemPath
- Type: SystemString
- itemType
- Type: ITHit.FileSystemFileSystemItemType
Item type - file or folder. - userFileSystemNewPath
- Type: SystemString
- operationContext
- Type: ITHit.FileSystemIOperationContext
Provides additonal information if available, depending on the environment.
Return Value
Type:
TaskBooleanTrue if the item must NOT be synced to the remote storage. False - otherwise.
Implements
IFileSystemFilterFilterAsync(SyncDirection, OperationType, String, FileSystemItemType, String, IOperationContext)Remarks
This method is called before calling GetFileSystemItemAsync(Byte, FileSystemItemType, IContext, ILogger) as well as each IFile,
IFolder and ILock interface methods.
If this method returns true, the method is NOT called.
You can use this method to exclude items from synchronization with the remote storage.
For example you can exclude temporary files, hidden files, Microsoft Office lock files, backup files, etc.
The default Engine implementation returns false for all items.
See Also