View Source Dragon.Tools (dragon v1.0.1)

File handling tools.

Link to this section Summary

Link to this section Functions

Link to this function

find_file_variant(root, list)

View Source
Link to this function

find_index_file(root, index)

View Source
Link to this function

put_into(dict, list, value)

View Source
Link to this function

scan_file(dragon, path, _)

View Source

Within walk_tree, investigate a file to determine what its type is and store accordingly. If it begins with the dragon header, consider it a dragon template. Otherwise look at the file extension.

Link to this function

try_variant(root, part, rest, on_error \\ nil)

View Source
Link to this function

walk_tree(dragon, path, cfg)

View Source
Link to this function

with_open_file(path, func)

View Source
Link to this function

write_file(dest, content)

View Source