Difference between revisions of "Extensions.File.IsDirectory"
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE:OTX '''IsDirectory'''}}Category:File == Classification == {{ClassificationActivity | IsDirectory | UPDATING... | Term | Extensions.File|OTX File exten...") |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:OTX '''IsDirectory'''}}[[Category:File]] | {{DISPLAYTITLE:OTX '''IsDirectory'''}}[[Category:File]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | IsDirectory | | + | {{ClassificationActivity | IsDirectory| Determines whether the specified path exists and is a directory| [[Term]] | [[Extensions.File|OTX File extension]] | [[Extensions.File#Terms|File related Terms]]| - | - |}} |
== OTL Syntax == | == OTL Syntax == | ||
− | |||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | BooleanTerm = File.IsDirectory(StringTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== Description == | == Description == | ||
− | + | The '''IsDirectory''' activity determines whether the specified path exists and is a directory. | |
− | + | ||
− | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | Returns TRUE if the specified path exists and is a directory.}} | |
− | {{ | ||
− | |||
== Properties == | == Properties == | ||
− | |||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{ | + | {{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;"> | ||
− | + | String String1 = ""; | |
+ | Boolean Boolean1 = false; | ||
− | + | /// Flow | |
− | + | String1 = File.CreateTempDirectory(); | |
− | + | Boolean1 = File.IsDirectory(String1); | |
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== See also == | == See also == | ||
− | + | [[Extensions.File.CreateTempDirectory|CreateTempDirectory]]<br/> | |
+ | [[Extensions.File.GetFilePath|GetFilePath]]<br/> | ||
+ | [[Extensions.File.GetFilesFromDirectory|GetFilesFromDirectory]]<br/> | ||
+ | [[Extensions.File.GetFileSize|GetFileSize]]<br/> | ||
+ | <!--[[Extensions.File.IsDirectory|IsDirectory]]<br/>--> | ||
+ | [[Extensions.File.IsEndOfFileReached|IsEndOfFileReached]]<br/> | ||
+ | [[Extensions.File.IsFile|IsFile]]<br/> | ||
+ | [[Extensions.File.OpenFileForRead|OpenFileForRead]]<br/> | ||
+ | [[Extensions.File.OpenFileForWrite|OpenFileForWrite]]<br/> | ||
+ | [[Extensions.File.ReadBytes|ReadBytes]]<br/> | ||
+ | [[Extensions.File.ReadFile|ReadFile]]<br/> | ||
+ | [[Extensions.File.ReadLine|ReadLine]] |
Revision as of 08:21, 27 September 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);
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
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