Filesystem API.
Authors: Alexander Færøy (ahf@0x90.dk
).
expand_tilde/1 | Expand "~" (tilde) in a path with the users home directory. |
homedir/0 | Get the UNIX home directory. |
touch/2 | Create an empty file with a given UNIX mode. |
expand_tilde(Path::file:filename()) -> file:filename()
Expand "~" (tilde) in a path with the users home directory.
homedir() -> file:filename()
Get the UNIX home directory.
touch(Filename, Mode) -> ok | {error, Reason}
Filename = file:filename()
Mode = integer()
Reason = term()
Create an empty file with a given UNIX mode.