Difference between revisions of "love.filesystem.isFile"

m
m
Line 3: Line 3:
 
=== 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]]

Revision as of 10:08, 26 January 2016

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