dart_io 0.1.0

dart_io is a dart inspired high level abstraction to interact with io operations.
Documentation
  • Coverage
  • 0%
    0 out of 17 items documented0 out of 14 items with examples
  • Size
  • Source code size: 45.78 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.69 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • LiveUser/dart_io
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LiveUser

Dart IO

dart_io is a dart inspired high level abstraction to interact with io operations. Hecho en Puerto Rico por Radamés Jomuel Valentín Reyes.

Directory

Directory Struct

let test_directory:Directory = Directory { 
    full_path: String::from("./test"),
};

Directory exists

test_directory.exists()

Create Directory

test_directory.create_sync();

Delete Directory

test_directory.delete_sync();

List Directory Contents

let folder_contents:Vec<FileSystemEntity> = test_directory.list_contents();

File

File Struct

let file:File = File { 
    full_path:  String::from("./test/file.txt"),
};

File exists

file.create_sync();

Create File

file.create_sync();

Delete Directory

file.delete_sync();

Read File as String

let text:String = file.read_as_string();

Read File as Bytes

let bytes:Vec<u8> = file.read_as_bytes();