Garry's Mod Wiki

file.IsDir

boolean file.IsDir( string fileName, string path )

Description

Returns whether the given file is a directory or not.

Arguments

1 string fileName
The file or directory's name.
2 string path
The path type.

Returns

1 boolean
True if the given path is a directory or false if it is a file.

Example

Prints if helloworld.txt is a directory.

print( file.IsDir("helloworld.txt", "DATA") )
Output: false

Page Links


Special Pages


Wikis

?

Render Time: 61ms

Session 0
DB GetPage 12
Generate Html 17
SaveChanges 19
Render Body 0
Render Sidebar 12