moveFile(from_file_path, to_file_path, [copy])
Class: SwingUI.
Description:
Moves or copies a file synchronously. If the destination directory doesn't exist, the operation may fail.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
string |
Source file path |
|
|
|
string |
Destination file path |
|
|
|
boolean |
false |
Copy instead of move |
Returns:
- Returns true on success, or thrown an error on failure
Type: boolean
