MoveDataFolder
MoveDataFolder [ /O=options /Z ] sourceDataFolderSpec, destDataFolderPath
The MoveDataFolder operation removes the source data folder (and everything it contains) and places it at the specified location with the original name.
Parameters
sourceDataFolderSpec can be just the name of a child data folder in the current data folder, a partial path (relative to the current data folder) and name or an absolute path (starting from root) and name.
destDataFolderPath can be a partial path (relative to the current data folder) or an absolute path (starting from root).
Flags
| /O=options | Overwrites the destination data folder if it already exists. | ||||||
| The /O flag was added in Igor Pro 8.00. | |||||||
| |||||||
| /Z | Errors are not fatal - if an error occurs, procedure execution continues. You can check the V_flag output variable to see if an error occurred. | ||||||
Details
MoveDataFolder generates an error if a data folder of the same name already exists at the destination unless the /O flag is used. When the /O flag is non-zero and the destination data folder already exists, MoveDataFolder is equivalent to DuplicateDataFolder followed by a KillDataFolder on the source.
Output Variables
MoveDataFolder sets the following output variable:
| V_Flag | 0 if the operation succeeded or a non-zero error code. The V_Flag output variable was added in Igor Pro 8.00. | |
Examples
MoveDataFolder root:DF0, root:archive // Move DF0 into archive