OnDemandLocalFileSystem.CreateOnDemandEntry Method |
Converts a regular file or folder into an On-Demand entry.
Namespace:
callback.ShellBoost.Core.Synchronization
Assembly:
callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax protected virtual int CreateOnDemandEntry(
string localRelativePath,
StateSyncEntry entry,
bool throwOnError = true
)
Parameters
- localRelativePath
- Type: System.String
The local relative path. - entry
- Type: callback.ShellBoost.Core.Synchronization.StateSyncEntry
The entry information to use to create the On-Demand entry. - throwOnError (Optional)
- Type: System.Boolean
true to throw error; otherwise false.
Return Value
Type:
Int32
0 if operation was successful; otherwise an error code.
Exceptions Exception | Condition |
---|
ArgumentNullException |
localRelativePath is null.
or
entry is null.
|
ArgumentException | localRelativePath is a rooted path. |
IOException |
A file already exists at '" + localFullPath + "'. Cannot create a directory there.
or
A directory already exists at '" + localFullPath + "'. Cannot create a file there.
|
See Also