Difference between revisions of "love.filesystem.exists"

m
Line 3: Line 3:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
e = love.filesystem.exists( filename )
+
exists = love.filesystem.exists( filename )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
{{param|string|filename|The path to a potential file or directory.}}
 
{{param|string|filename|The path to a potential file or directory.}}
 
=== Returns ===
 
=== Returns ===
{{param|boolean|e|True if there is a file or directory with the specified name. False otherwise.}}
+
{{param|boolean|exists|True if there is a file or directory with the specified name. False otherwise.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.filesystem]]
 
* [[parent::love.filesystem]]

Revision as of 21:35, 22 December 2015

Check whether a file or directory exists.

Function

Synopsis

exists = love.filesystem.exists( filename )

Arguments

string filename
The path to a potential file or directory.

Returns

boolean exists
True if there is a file or directory with the specified name. False otherwise.

See Also


Other Languages