ViaUtils.File (via_utils v0.2.0) View Source

Documentation for ViaUtils.File.

Link to this section Summary

Link to this section Functions

Link to this function

cycle_mount(drive_location, mount_path \\ default_mount_path())

View Source

Specs

cycle_mount(binary(), binary()) :: atom()
Link to this macro

default_mount_path()

View Source (macro)
Link to this function

get_filenames_with_extension(extension, subdirectory \\ "", mount_path \\ default_mount_path())

View Source

Specs

get_filenames_with_extension(binary(), binary(), binary()) :: list()
Link to this function

mount_usb_drive(drive_location, mount_path \\ default_mount_path())

View Source

Specs

mount_usb_drive(binary(), binary()) :: atom()
Link to this function

read_file(filename, mount_path \\ default_mount_path())

View Source

Specs

read_file(binary(), binary()) :: nil | binary()
Link to this function

read_file(filename, mount_path, trim_trailing_newline)

View Source

Specs

read_file(binary(), binary(), boolean()) :: nil | binary()
Link to this function

read_file_target(filename, mount_path, write_to_data \\ false)

View Source

Specs

read_file_target(binary(), binary(), boolean()) :: nil | binary()
Link to this function

read_file_target(filename, mount_path, write_to_data, trim_trailing_newline)

View Source

Specs

read_file_target(binary(), binary(), boolean(), boolean()) :: nil | binary()

Specs

target?() :: boolean()
Link to this function

unmount_usb_drive(mount_path \\ default_mount_path())

View Source

Specs

unmount_usb_drive(binary()) :: tuple()
Link to this function

write_file(filename, mount_path \\ default_mount_path(), binary_to_write)

View Source

Specs

write_file(binary(), binary(), binary()) :: nil | atom()