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

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

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

Public Attributes

StringTerm path
 Cardinality [1]
The directory 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 Directory on the specified path.

The DeleteDirectory activity deletes a Directory on the specified path. Its contents will be deleted recursively.

Exceptions
Exceptions.FileAccessExceptionIf access to the directory is not allowed, e.g. due to file system permissions.
Exceptions.FileNotFoundExceptionIf the path does not point to an existing directory.
Exceptions.FileLockExceptionIf the underlying runtime system denies concurrent access.
Syntax
File.DeleteDirectory(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.DeleteDirectory("file:///D:/abc");

Member Data Documentation

◆ path

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

Cardinality [1]
The directory 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.DeleteDirectory.path
StringTerm path
Cardinality [1] The directory to delete. The path shall be defined by a URI (see ISO 13209-2,...
Definition: File.cs:814