add file.name(), file.stem() & add 'path' to pack info & add start_coroutine()
This commit is contained in:
@@ -120,3 +120,15 @@ file.read_combined_object(path: str) -> array
|
||||
```
|
||||
|
||||
Combines objects from JSON files of different packs.
|
||||
|
||||
```lua
|
||||
file.name(path: str) --> str
|
||||
```
|
||||
|
||||
Extracts the file name from the path.
|
||||
|
||||
``lua
|
||||
file.stem(path: str) --> str
|
||||
```
|
||||
|
||||
Extracts the file name from the path, removing the extension.
|
||||
|
||||
@@ -83,6 +83,7 @@ pack.get_info(packid: str) -> {
|
||||
creator: str,
|
||||
description: str,
|
||||
version: str,
|
||||
path: str,
|
||||
icon: str, -- not available in headless mode
|
||||
dependencies: optional strings array
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user