1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-19 08:05:20 +01:00

Implement core.path_exists() (#16647)

This commit is contained in:
Rising Leaf
2025-11-16 06:00:36 -08:00
committed by GitHub
parent 7e53e65549
commit 44e7c5b9ab
3 changed files with 24 additions and 1 deletions

View File

@@ -5962,7 +5962,8 @@ Utilities
touch_controls = false,
}
```
* `core.path_exists(path)`: returns true if the given path exists else false
* `path` is the path that will be tested can be either a directory or a file
* `core.mkdir(path)`: returns success.
* Creates a directory specified by `path`, creating parent directories
if they don't exist.