This function will validate if the job is allowed to delete a file at the given path.
The same validation as in ValidateLoadAndSavePath(String) is done.
Enabling this validation and exception paths are configured using the section:Spotfire.Dxp.Automation.Framework/security/ in Spotfire.Dxp.Worker.Automation.config.
This function will also check that the given file exist, that it is created and modified the last N minutes.Where N is configured in the above section in allowDeleteOfFilesModifiedLastMinutes.
When executing jobs locally in Job Builder, this function will always succeed.Namespace: Spotfire.Dxp.Automation.Extension
Assembly: Spotfire.Dxp.Automation.Framework (in Spotfire.Dxp.Automation.Framework.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
Syntax
C#
public static void ValidateDeleteFileInPath( string filePathToValidate )
Parameters
- filePathToValidate
- Type: SystemString
The non empty absolute or relative path to the file to validate. Relative paths are validated using the current path.
Exceptions
Exception | Condition |
---|---|
UnauthorizedAccessException | If the job cannot load or save to the given path. |
FileNotFoundException | If the file do not exist. |
ArgumentException | If the argument is null or an empty string. |
Version Information
See Also