Difference between revisions of "love.filesystem.isFile"
m (Changed version number from 0.11.0 to 11.0) |
|||
(8 intermediate revisions by 5 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 file. | |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | isFile = love.filesystem.isFile( filename ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
{{param|string|filename|The path to a potential file.}} | {{param|string|filename|The path to a potential file.}} | ||
=== Returns === | === Returns === | ||
− | {{param|boolean| | + | {{param|boolean|isFile|True if there is a file with the specified name. False otherwise.}} |
== See Also == | == See Also == | ||
* [[parent::love.filesystem]] | * [[parent::love.filesystem]] | ||
+ | * [[love.filesystem.isDirectory]] | ||
+ | * [[love.filesystem.exists]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Check whether something is a file.}} |
+ | {{#set:Since=000}} | ||
+ | == Other Languages == | ||
+ | {{i18n|love.filesystem.isFile}} |
Latest revision as of 18:24, 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 file.
Function
Synopsis
isFile = love.filesystem.isFile( filename )
Arguments
string filename
- The path to a potential file.
Returns
boolean isFile
- True if there is a file 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