Skip to content

Commit 9289dbc

Browse files
authored
chore(ox_lib): add docs for getFilesInDirectory (#255)
1 parent 132ca33 commit 9289dbc

File tree

1 file changed

+17
-0
lines changed
  • pages/ox_lib/Modules/GetFilesInDirectory

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Server
2+
3+
## lib.getFilesInDirectory
4+
Gets a list of all files in a specified resource directory, along with the file count
5+
6+
```lua
7+
lib.getFilesInDirectory(path, pattern)
8+
```
9+
10+
- path: `string`
11+
- The relative or absolute path to the directory where files should be listed.
12+
- pattern: `string`
13+
- Pattern to check for when searching for files.
14+
15+
Returns:
16+
- files: `string[]`
17+
- fileCount: `number`

0 commit comments

Comments
 (0)