Difference between revisions of "love.filesystem.isDirectory"
m (included link to other languages) |
m (Changed version from 0.11.0 to 11.0) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{deprecatedin|[[11.0]]|110|type=function|text=This function is deprecated and is replaced by [[love.filesystem.getInfo]]}} | ||
Check whether something is a directory. | Check whether something is a directory. | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | isDir = love.filesystem.isDirectory( filename ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
{{param|string|filename|The path to a potential directory.}} | {{param|string|filename|The path to a potential directory.}} | ||
=== Returns === | === Returns === | ||
− | {{param|boolean| | + | {{param|boolean|isDir|True if there is a directory with the specified name. False otherwise.}} |
== See Also == | == See Also == | ||
* [[parent::love.filesystem]] | * [[parent::love.filesystem]] | ||
+ | * [[love.filesystem.isFile]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Check whether something is a directory.}} | {{#set:Description=Check whether something is a directory.}} | ||
+ | {{#set:Since=000}} | ||
+ | |||
== Other Languages == | == Other Languages == | ||
{{i18n|love.filesystem.isDirectory}} | {{i18n|love.filesystem.isDirectory}} |
Latest revision as of 18:26, 3 April 2018
Deprecated in LÖVE 11.0 |
This function is deprecated and is replaced by love.filesystem.getInfo. |
Check whether something is a directory.
Function
Synopsis
isDir = love.filesystem.isDirectory( filename )
Arguments
string filename
- The path to a potential directory.
Returns
boolean isDir
- True if there is a directory with the specified name. False otherwise.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info