View Source Dragon.Tools.File (dragon v1.2.3)

File handling tools.

Link to this section Summary

Link to this section Functions

Link to this function

drop_root(x, y, z \\ [absolute: false])

View Source
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

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

with_open_file(path, func)

View Source
Link to this function

write_file(dest, content)

View Source