Copyright © (C) 2012 Erlware, LLC.
Authors: Aman Mangal (mangalaman93@gmail.com).
| copy_folder/2 | copies one folder to another, creates the intermediate directories if required. |
| get_abs_path/1 | returns absolute path to the given location which is relative to ~/.epax folder. |
| mkdir/1 | create the directory if it does not exist already. |
| mv_folder/2 | moves content of one folder to another (renames the folder). |
| rmdir/1 | deletes the given directory. |
| run_in_dir/2 | runs a command in a directory. |
| touch/1 | creates an empty file. |
copy_folder(From, To) -> ok
From = string()To = string()
copies one folder to another, creates the intermediate directories if required
get_abs_path(Location) -> Result | no_return()
Location = string()Result = string()
returns absolute path to the given location which is relative to ~/.epax folder
mkdir(Path) -> ok | {error, Reason}
Path = string()Reason = term()
create the directory if it does not exist already. Also makes parent directories as needed.
mv_folder(From, To) -> ok
From = string()To = string()
moves content of one folder to another (renames the folder)
rmdir(Path) -> ok
Path = string()
deletes the given directory
run_in_dir(Path, Cmd) -> Result
Path = string()Cmd = string()Result = term()
runs a command in a directory. This command should only be used to run external application like git.
touch(Path) -> ok
Path = string()
creates an empty file
Generated by EDoc