Skip to content

Latest commit

 

History

History
57 lines (32 loc) · 1.53 KB

onion_file.md

File metadata and controls

57 lines (32 loc) · 1.53 KB

Module onion_file

Filesystem API.

Authors: Alexander Færøy (ahf@0x90.dk).

Function Index

expand_tilde/1Expand "~" (tilde) in a path with the users home directory.
homedir/0Get the UNIX home directory.
touch/2Create an empty file with a given UNIX mode.

Function Details

expand_tilde/1


expand_tilde(Path::file:filename()) -> file:filename()

Expand "~" (tilde) in a path with the users home directory.

homedir/0


homedir() -> file:filename()

Get the UNIX home directory.

touch/2


touch(Filename, Mode) -> ok | {error, Reason}

Create an empty file with a given UNIX mode.