amber/deno

Functions

pub fn chmod_sync(path: String, mode: Int) -> Nil
pub fn chown_sync(
  path: String,
  uid: Option(Int),
  gid: Option(Int),
) -> Nil
pub fn copy_file_sync(from_path: String, to_path: String) -> Nil
pub fn create_sync(path: String) -> Result(FsFile, Error)
pub fn link_sync(
  oldpath: String,
  newpath: String,
) -> Result(Nil, Error)
pub fn lstat_sync(path: String) -> FileInfo
pub fn make_temp_dir_sync(
  options: List(MakeTempOption),
) -> String
pub fn make_temp_file_sync(
  options: List(MakeTempOption),
) -> String
pub fn mkdir_sync(
  path: String,
  options: List(MkdirOption),
) -> Nil
pub fn open_sync(
  path: String,
  options: List(OpenOption),
) -> Result(FsFile, Error)
pub fn read_dir_sync(path: String) -> List(DirEntry)
pub fn read_file_sync(path: String) -> Uint8Array
pub fn read_link_sync(path: String) -> String
pub fn read_text_file_sync(path: String) -> String
pub fn real_path_sync(path: String) -> String
pub fn remove_sync(
  path: String,
  options: List(RemoveOption),
) -> Nil
pub fn rename_sync(oldpath: String, newpath: String) -> Nil
pub fn set_umask(mask: Int) -> Int
pub fn stat_sync(path: String) -> FileInfo
pub fn symlink_sync(
  oldpath: String,
  newpath: String,
  options: List(SymlinkOption),
) -> Nil
pub fn truncate_sync(name: String, len: Option(Int)) -> Nil
pub fn umask() -> Int
pub fn utime_sync(path: String, atime: Int, mtime: Int) -> Nil
pub fn watch_fs(
  paths: List(String),
  options: List(WatchFsOption),
) -> FsWatcher
pub fn write_file_sync(
  path: String,
  data: Uint8Array,
  options: List(WriteFileOption),
) -> Nil
pub fn write_text_file_sync(
  path: String,
  data: String,
  options: List(WriteFileOption),
) -> Nil
Search Document