[][src]Module hina::fs

Structs

FsEntry
VolumeInformation

Enums

SearchOption

Traits

FileExt

Functions

allocation_granularity
directories
directory_exists
entries
file_exists
files
get_volume_information
read_all_bytes

opens a binary file, reads the contents of the file into a vec, and then closes the file.

read_all_lines

opens a text file, reads the all lines of the file into a vec<string>, and then closes the file.

read_all_text

opens a text file, reads the contents of the file into a string, and then closes the file.

replace

replaces source file with destination file, using backup as an intermediatary backup.

volume_available_bytes
volume_free_bytes
volume_total_bytes
write_all_bytes

creates a new file, writes the specified byte slice to the file, and then closes the file. if the target file already exists, it is overwritten.

write_all_text

creates a new file, write the contents to the file, and then closes the file. if the target file already exists, it is overwritten.