Difference between revisions of "Extensions.File.DeleteDirectory"

From emotive
Jump to navigation Jump to search
Line 19: Line 19:
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
/// Local Declarations
 +
 
File.FileWriteHandle FileWriteHandle1;
 
File.FileWriteHandle FileWriteHandle1;
  

Revision as of 02:35, 25 October 2018

Classification

Name DeleteDirectory
Short Description Deletes a Directory on the specified path
Class Action
Extension OTX File extension
Group File related Actions
Exceptions FileLockException
FileNotFoundException
Checker Rules -
Standard Compliant Yes

OTL Syntax

File.DeleteDirectory(StringTerm);

Description

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

Properties

Name Data Type Class Default Cardinality Description
path String Term - [1..1] The directory to delete. The path parameter is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the OTX home directory. The format of the path (e.g. case-sensitive) depends on the operating system. The path should be defined by a URI.

OTL Examples

/// Local Declarations

File.FileWriteHandle FileWriteHandle1;

/// Flow

FileWriteHandle1 = File.OpenFileForWrite("file:///D:/abc/abc.txt", false, @Encoding:UTF-8);
File.CloseFile(FileWriteHandle1);
File.DeleteDirectory("D:/abc");

See also

CloseFile
DeleteFile
SaveFile
WriteBytes
WriteFile
WriteLine