Environments | PYTHON :: EASI |
Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Related |
Back to top |
Back to top |
Name | Type | Caption | Length | Value range |
---|---|---|---|---|
FILE* | String | Input data set to manage | 1 - 192 | |
OUTDIR | String | Name of output folder | 0 - 192 | |
NEWBASE | String | Base name of renamed data set | 0 - 192 | |
OPERATION | String | Operation to apply to input data set | 0 - 192 | LIST | LS | DIR | COPY | CP | MOVE | MV | RENAME | DELETE | RM Default: LIST |
OPTIONS | String | Options to apply | 0 - 192 |
Back to top |
FILE
The file name of the data set to manage.
The name must be the key file, or primary file, of the entire data set.
OUTDIR
When copying or moving files, the name of output folder to which to write the copied or moved data set.
NEWBASE
When renaming a data set, the base name to use for renamed files and subfolders.
Renaming applies only to formats that support renaming. If the format of the input file does not support renaming, the algorithm throws an exception.
OPERATION
The operation to apply to the input data set.
When you are creating a list, the algorithm will write the list of file names to the report when you specify OPTIONS as TERSE. To have the list preceded with a header and proceeded by a footer, specify OPTIONS as VERBOSE.
To write the names of the source and destination files on separate lines of the report, specify OPTIONS as TERSE. To have the list preceded with a header and proceeded by a footer, specify OPTIONS as VERBOSE.
If the format of the input file does not support renaming, the algorithm throws an exception.
To write the names of the deleted files to the report, specify OPTIONS as TERSE. To have the list preceded with a header and proceeded by a footer, specify OPTIONS as VERBOSE.
To write the names of the deleted folders and files to the report, specify OPTIONS as TERSE. To have the list preceded with a header and proceeded by a footer, specify OPTIONS as VERBOSE.
If you do not specify a value for this parameter, LIST is applied.
OPTIONS
The option or options to apply during processing.
When specifying more than one, separate each with a space, comma, or semicolon.
You can specify QUIET for any operation, except LIST. When no report-level option is specified, QUIET is applied.
When you do not specify any values for OPTIONS, NO_OVERWRITE, QUIET, and RELATIVE are applied.
Back to top |
You use MANAGEDATASET to copy, delete, rename, move, or list the files of a data set.
For example, when you want to copy a shapefile (.shp), all its associated files (.dbf, .prj, .shp, .shx) must also be copied. Run MANAGEDATASET to copy the shapefile and all associated files to the output folder you specify.
Back to top |
In the following example, the roadseg.shp data set is copied to the roadseg-copy folder.
EASI>file="roadseg.shp" ! input data set to copy EASI>outdir="roadseg-copy" ! output folder to which to copy the data set EASI>basename="" EASI>operation="COPY" EASI>options="VERBOSE" ! write detailed information to the report EASI>run managedataset
© PCI Geomatics Enterprises, Inc.®, 2024. All rights reserved.