Difference between revisions of "love.filesystem.isFile"

m (1 revision: Imported docs from potato.)
m (Changed version number from 0.11.0 to 11.0)
 
(7 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">
is_file = love.filesystem.isFile( filename )
+
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|is_file|True if there is a file with the specified name. False otherwise.}}
+
{{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