Extensions.File.IsFile

From emotive
Jump to navigation Jump to search

Classification

Name IsFile
Short Description Determines whether the specified path exists and is a file
Class Term
Extension OTX File extension
Group File related Terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

BooleanTerm File.IsFile(StringTerm path);

Description

The IsFile activity determines whether the specified path exists and is a file.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Boolean Returns TRUE if the specified path exists and is a file.

Properties

Name Data Type Class Default Cardinality Description
Path String Term - [1..1] The file to check. The path parameter is permitted to specify relative or absolute path information.

OTL Examples

/// Local Declarations

Boolean Boolean1 = false;

/// Flow

Boolean1 = File.IsFile("file:///D:/abc.txt");

See also

CreateTempDirectory
GetFilePath
GetFilesFromDirectory
GetFileSize
IsDirectory
IsEndOfFileReached
OpenFileForRead
OpenFileForWrite
ReadBytes
ReadFile
ReadLine