Difference between revisions of "Extensions.File.IsDirectory"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | BooleanTerm | + | BooleanTerm File.IsDirectory(StringTerm path); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 16: | Line 16: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie2| | + | {{TableRowPropertie2| Path| [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1..1] |The directory to check. The path parameter is permitted to specify relative or absolute path information.}} |
|} | |} | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
String String1 = ""; | String String1 = ""; | ||
Boolean Boolean1 = false; | Boolean Boolean1 = false; |
Latest revision as of 10:16, 2 November 2018
Contents
Classification
Name | IsDirectory |
Short Description | Determines whether the specified path exists and is a directory |
Class | Term |
Extension | OTX File extension |
Group | File related Terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm File.IsDirectory(StringTerm path);
Description
The IsDirectory activity determines whether the specified path exists and is a directory.
Return Value
The Term returns the value, see table below.
![]()
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 directory. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Path | String | Term | - | [1..1] | The directory to check. The path parameter is permitted to specify relative or absolute path information. |
OTL Examples
/// Local Declarations
String String1 = "";
Boolean Boolean1 = false;
/// Flow
String1 = File.CreateTempDirectory();
Boolean1 = File.IsDirectory(String1);
See also
CreateTempDirectory
GetFilePath
GetFilesFromDirectory
GetFileSize
IsEndOfFileReached
IsFile
OpenFileForRead
OpenFileForWrite
ReadBytes
ReadFile
ReadLine