plinth/browser/file_system
Types
pub type WritableFileStream
Values
pub fn all_entries(
handle: Handle(D),
) -> promise.Promise(
Result(
#(array.Array(Handle(D)), array.Array(Handle(F))),
String,
),
)
pub fn close(
file_handle: WritableFileStream,
) -> promise.Promise(Result(Nil, String))
pub fn create_writable(
file_handle: Handle(F),
) -> promise.Promise(Result(WritableFileStream, String))
pub fn get_directory_handle(
handle: Handle(D),
name: String,
create: Bool,
) -> promise.Promise(Result(Handle(D), String))
pub fn get_file(
file_handle: Handle(F),
) -> promise.Promise(Result(file.File, String))
pub fn get_file_handle(
handle: Handle(D),
name: String,
create: Bool,
) -> promise.Promise(Result(Handle(F), String))
pub fn remove_entry(
handle: Handle(D),
name: String,
create: Bool,
) -> promise.Promise(Result(Nil, String))
pub fn show_directory_picker(
,
) -> promise.Promise(Result(Handle(D), String))
pub fn show_open_file_picker(
,
) -> promise.Promise(Result(array.Array(Handle(F)), String))
pub fn show_save_file_picker(
,
) -> promise.Promise(Result(Handle(F), String))
pub fn write(
file_handle: WritableFileStream,
content: BitArray,
) -> promise.Promise(Result(Nil, String))