update doс/*/scripting/builtins/libfile.md

This commit is contained in:
MihailRis 2026-09-20 17:45:41 +03:00
parent 31c227152b
commit 2f2da3b56a
2 changed files with 10 additions and 1 deletions

View file

@ -163,6 +163,12 @@ file.ext(path: str) --> str
Extracts the extension from the path. Example: `world:data/base/config.toml` -> `toml`.
```lua
file.remove_ext(path: string) -> string
```
Returns the path without the extension. Example: `world:data/base/config.toml` -> `world:data/base/config`.
```lua
file.prefix(path: str) --> str
```

View file

@ -78,6 +78,9 @@ file.stem(путь: string) -> string
-- Извлекает расширение из пути. Пример: `world:data/base/config.toml` -> `toml`.
file.ext(путь: string) -> string
-- Возвращает путь без расширения. Пример: `world:data/base/config.toml` -> `world:data/base/config`.
file.remove_ext(путь: string) -> string
```
## Директории