ReplaceFile
Description
Perform file replace.
Syntax
// shellListing points to instance of IShellListing
await shellListing.ReplaceFile(
selectedFileID,
selectedObject,
fileToBeReplaced,
);
Parameters
| Name | Optionality | Type | Description |
|---|---|---|---|
| selectedFileID | Required | number | Selected file's ID. |
| selectedObject | Required | ISelectedFile | Selected object info. |
| fileToBeReplaced | Required | FileList | Info of file to be replaced. See https://developer.mozilla.org/en-US/docs/Web/API/FileList |
Return type
| Type | Description |
|---|---|
| Promise < void > | Method does not return a value |