We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132ca33 commit 9289dbcCopy full SHA for 9289dbc
pages/ox_lib/Modules/GetFilesInDirectory/Server.mdx
@@ -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