Get Filename From Path Action

This action extracts the file name from a file location contained in a Shared Property.  This action is used with other actions that populate the shared property that contains the file location of interest.  The resulting filename is then placed in another Shared Property using the designated results Shared Property name.

 

Prepare Stage

No action taken

Execute Stage

Backs up results Shared Property, if it exists.  Looks for designated Shared Property containing a full file location.  If the Shared Property exists, the file name is extracted and placed in the results Shared Property.  If it does not exist,a default value is used, or the package execution is aborted. 

Cleanup Stage

No Action Taken

Rollback Stage

Removes the results from the Shared Properties collection and replaces it with the value that existed before execution.

 

Get Directory From Path Action Editor

 

 

Action Condition - An expression using expansion variables that is evaluated during engine execution that determines whether this action will be executed.

 

Action Description – Descriptive text that can be used to identify this particular action in the Actions list.

 

Path to read shared property – The Shared Property that contains the full file location path of interest.

  

Shared Property to read result into - The name of a Shared Property that will be added/replaced upon execution of the action to include the filename portion of the full file location.

 

Action to take if value can't be read- Determines whether to abort the package execution or place a default value in the results Shared Property.  The default is to use a default value.

Default Value:  A value to place in the results Shared Property if the path to read doesn't exist. 

See Also

AppLife Engine