Difference between revisions of "love.filesystem.isDirectory"

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

Revision as of 10:07, 26 January 2016

Check whether something is a directory.

Function

Synopsis

isDir = love.filesystem.isDirectory( filename )

Arguments

string filename
The path to a potential directory.

Returns

boolean isDir
True if there is a directory with the specified name. False otherwise.

See Also


Other Languages