Difference between revisions of "love.filesystem.exists"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Check whether a file or directory exists.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 13: Line 13:
 
* [[parent::love.filesystem]]
 
* [[parent::love.filesystem]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Check whether a file or directory exists.}}

Revision as of 16:17, 14 February 2010

Check whether a file or directory exists.

Function

Synopsis

e = love.filesystem.exists( filename )

Arguments

string filename
The path to a potential file or directory.

Returns

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

See Also