HolyLib Wiki

autorefresh.AddFolderToRefresh

 boolean autorefresh.AddFolderToRefresh( string folderName, boolean recursive = false )

Description

Adds a folder to GMod's Lua auto refresh watcher, the same way folders configured by the engine are watched.

Arguments

1string folderName

Path of the folder to watch

2boolean recursive = false

If true, also watches all subfolders

Returns

1boolean success

Returns true if the folder was added