IFileSystemItemMetadataRemoteStorageItemId Property |
Namespace: ITHit.FileSystem
This field is an item identifier, which is unique withing your virtual file system. You will typically set it during folder listing inside GetChildrenAsync(String, IOperationContext, IFolderListingResultContext, CancellationToken). The platform will store the item identifier together with the item. The Engine will provide the RemoteStorageItemId during each operation, passing it inside the GetFileSystemItemAsync(Byte, FileSystemItemType, IContext, ILogger) method, so you can use it for your remote storage calls if needed.
On macOS platform this identifier should NOT change during the lifetime of the item. Including it should NOT change during the move operation.
On Windows platform, if your remote storage does not provide an item identifier, you can set this field to null. In this case you will map the user file system path, passed to GetFileSystemItemAsync(Byte, FileSystemItemType, IContext, ILogger) in the context parameter, to remote storage path and use it to identify your items in the remote storage. The path is available on Windows paltform only.