Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ci/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,13 @@ local MODES = {

local function load_test_config(config_file)
local config = {}
print ("loading test config from " .. config_file)
if dfhack.filesystem.isfile(config_file) then
config = json.decode_file(config_file)
end

if not config.test_dir then
config.test_dir = dfhack.getHackPath() .. 'scripts/test'
config.test_dir = dfhack.getHackPath() .. '/scripts/test'
end

if not config.save_dir then
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Template for new versions:
## Documentation

## API
- ``Filesystem`` module: rewritten to use C++ standard library components, for better portability

## Lua

Expand Down
6 changes: 0 additions & 6 deletions docs/dev/Lua API.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3168,12 +3168,6 @@ unless otherwise noted.
specified by ``path``, or -1 if ``path`` does not exist.
This depends on the system clock and should only be used locally.

* ``dfhack.filesystem.atime(path)``
* ``dfhack.filesystem.ctime(path)``

Return values vary across operating systems - return the ``st_atime`` and
``st_ctime`` fields of a C++ stat struct, respectively.

* ``dfhack.filesystem.listdir(path)``

Lists files/directories in a directory. Returns ``{}`` if ``path`` does not exist.
Expand Down
Loading
Loading