Kaba namespace fs ed
...
Syntax ed
namespace fs
# functions
func static copy(source: Path, dest: Path)
func static create_directory(dir: Path)
func static current_directory() -> Path
func static delete(filename: Path)
func static delete_directory(dir: Path)
func static exists(filename: Path) -> bool
func static hash(filename: Path, type: string) -> string
func static is_directory(filename: Path) -> bool
func static move(source: Path, dest: Path)
func static mtime(filename: Path) -> Date
func static open(filename: Path, mode: string) -> xfer[FileStream]
func static read(filename: Path) -> bytes
func static read_text(filename: Path) -> string
func static rename(source: Path, dest: Path)
func static search(dir: Path, filter: string, options: string) -> Path[]
func static set_current_directory(dir: Path)
func static size(filename: Path) -> i64
func static write(filename: Path, buffer: bytes)
func static write_text(filename: Path, buffer: string)
# constants
let home_directory: Path
Functions ed
- func static copy(source: Path, dest: Path)
- ...
- func static create_directory(dir: Path)
- ...
- func static current_directory() -> Path
- ...
- func static delete(filename: Path)
- ...
- func static delete_directory(dir: Path)
- ...
- func static exists(filename: Path) -> bool
- ...
- func static hash(filename: Path, type: string) -> string
- ...
- func static is_directory(filename: Path) -> bool
- ...
- func static move(source: Path, dest: Path)
- ...
- func static mtime(filename: Path) -> Date
- ...
- func static open(filename: Path, mode: string) -> xfer[FileStream]
- ...
- func static read(filename: Path) -> bytes
- ...
- func static read_text(filename: Path) -> string
- ...
- func static rename(source: Path, dest: Path)
- ...
- func static search(dir: Path, filter: string, options: string) -> Path[]
- ...
- func static set_current_directory(dir: Path)
- ...
- func static size(filename: Path) -> i64
- ...
- func static write(filename: Path, buffer: bytes)
- ...
- func static write_text(filename: Path, buffer: string)
- ...