OTX Reference  
OpenTestSystem.Otx.Extensions.File.Actions.DeleteFile Class Reference

Deletes a File on the specified path. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.File.Actions.DeleteFile:
Inheritance graph

Public Attributes

StringTerm path
 Cardinality [1]
The file to delete. The path shall be defined by a URI (see ISO 13209-2, Annex OTX home and URI recommendation). More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Deletes a File on the specified path.

The DeleteFile activity deletes a File on the specified path.

Exceptions
Exceptions.FileAccessExceptionIf access to the file is not allowed, e.g. due to file system permissions.
Exceptions.FileNotFoundExceptionIf the path (file or directory) does not point to an existing file.
Exceptions.FileLockExceptionIf the underlying runtime system denies concurrent access.
Syntax
File.DeleteFile(StringTerm path);
Examples
// Local Declarations
File.FileWriteHandle FileWriteHandle1;
// Flow
FileWriteHandle1 = File.OpenFileForWrite("file:///D:/abc/abc.txt", false, @Encoding:UTF-8);
File.CloseFile(FileWriteHandle1);
File.DeleteFile("file:///D:/abc/abc.txt");

Member Data Documentation

◆ path

StringTerm OpenTestSystem.Otx.Extensions.File.Actions.DeleteFile.path

Cardinality [1]
The file to delete. The path shall be defined by a URI (see ISO 13209-2, Annex OTX home and URI recommendation).

OpenTestSystem.Otx.Extensions.File.Actions.DeleteFile.path
StringTerm path
Cardinality [1] The file to delete. The path shall be defined by a URI (see ISO 13209-2,...
Definition: File.cs:749