Extensions.File.CreateTempDirectory

From emotive
Revision as of 02:42, 25 October 2018 by Hb (talk | contribs) (→‎OTL Examples)
Jump to navigation Jump to search

Classification

Name CreateTempDirectory
Short Description Creates a new unique temporary directory
Class Term
Extension OTX File extension
Group File related Terms
Exceptions FileSaveException
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm = File.CreateTempDirectory();

Description

The CreateTempDirectory activity creates a new unique temporary directory and returns the URI of the path, which is either absolute or relative to OTX home. The OTX runtime environment has to deliver such directory and has to ensure that the user has read and write access to the content of that directory. After finishing the execution of the OTX runtime, the temporary directory will be deleted automatically with all its contents.

Properties

  • NONE

OTL Examples

/// Local Declarations

String String1 = "";

/// Flow

String1 = File.CreateTempDirectory();

See also

GetFilePath
GetFilesFromDirectory
GetFileSize
IsDirectory
IsEndOfFileReached
IsFile
OpenFileForRead
OpenFileForWrite
ReadBytes
ReadFile
ReadLine