mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 20:28:30 +00:00
Update redbean ProgramDirectory to return a list of previously set directories (#1021)
This commit is contained in:
parent
3315b6ef11
commit
a334f9cc33
2 changed files with 18 additions and 1 deletions
|
@ -1603,11 +1603,16 @@ FUNCTIONS
|
|||
ProgramGid(int)
|
||||
Same as the -G flag if called from .init.lua for setgid()
|
||||
|
||||
ProgramDirectory(str)
|
||||
ProgramDirectory([directory:str]) → {directory, ...}
|
||||
Same as the -D flag if called from .init.lua for overlaying local
|
||||
file system directories. This may be called multiple times. The
|
||||
first directory programmed is preferred. These currently do not
|
||||
show up in the index page listing.
|
||||
This call also modifies `package.path` value to either prepend
|
||||
the added directory in front of the default path (if found) or
|
||||
to append it (in all other cases).
|
||||
If no directory is provided, then a table with previously set
|
||||
directories is returned.
|
||||
|
||||
ProgramLogMessages(bool)
|
||||
Same as the -m flag if called from .init.lua for logging message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue