EngineMacFilterAsync Method |
IT Hit User File System
Allows filtering file system items.
Namespace:
ITHit.FileSystem.Mac
Assembly:
ITHit.FileSystem.Mac (in ITHit.FileSystem.Mac.dll) Version: 1.0.8837.18647
Syntax public Task<bool> FilterAsync(
SyncDirection direction,
OperationType operationType,
string path,
FileSystemItemType itemType,
string newPath = null,
IOperationContext operationContext = null
)
Public Function FilterAsync (
direction As SyncDirection,
operationType As OperationType,
path As String,
itemType As FileSystemItemType,
Optional newPath As String = Nothing,
Optional operationContext As IOperationContext = Nothing
) As Task(Of Boolean)
public:
virtual Task<bool>^ FilterAsync(
SyncDirection direction,
OperationType operationType,
String^ path,
FileSystemItemType itemType,
String^ newPath = nullptr,
IOperationContext^ operationContext = nullptr
) sealed
abstract FilterAsync :
direction : SyncDirection *
operationType : OperationType *
path : string *
itemType : FileSystemItemType *
?newPath : string *
?operationContext : IOperationContext
(* Defaults:
let _newPath = defaultArg newPath null
let _operationContext = defaultArg operationContext null
*)
-> Task<bool>
override FilterAsync :
direction : SyncDirection *
operationType : OperationType *
path : string *
itemType : FileSystemItemType *
?newPath : string *
?operationContext : IOperationContext
(* Defaults:
let _newPath = defaultArg newPath null
let _operationContext = defaultArg operationContext null
*)
-> Task<bool>
Parameters
- direction
- Type: ITHit.FileSystemSyncDirection
Indicates synchronization direction. - operationType
- Type: ITHit.FileSystemOperationType
File system operation type: OperationType. - path
- Type: SystemString
File system item path. In case of move and rename operation this is the source path. - itemType
- Type: ITHit.FileSystemFileSystemItemType
Item type - file or folder. - newPath (Optional)
- Type: SystemString
Target file path. This parameter is provided only in case of
Move and MoveCompletion operation. It is null for all other operations.
- operationContext (Optional)
- 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