diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-12-23 14:17:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-23 14:17:13 -0500 |
commit | 768a7c5c3096583059ae036b40fbe9c692d5eebe (patch) | |
tree | 7767e6f7d1ecb7c4341c693cb04aac293386a0cd /src/rebar_file_utils.erl | |
parent | a1a8387a191514ac0b939c23d10e34b49480dfd8 (diff) | |
parent | 8ae17c483d86f151d69091546b3577381662e27e (diff) |
Merge pull request #1391 from ferd/doc-and-types
Type specifications and edocs improvements
Diffstat (limited to 'src/rebar_file_utils.erl')
-rw-r--r-- | src/rebar_file_utils.erl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl index f2467c5..8645641 100644 --- a/src/rebar_file_utils.erl +++ b/src/rebar_file_utils.erl @@ -300,9 +300,8 @@ canonical_path([_|Acc], [".."|Rest]) -> canonical_path(Acc, Rest); canonical_path([], [".."|Rest]) -> canonical_path([], Rest); canonical_path(Acc, [Component|Rest]) -> canonical_path([Component|Acc], Rest). -%% returns canonical target of path if path is a link, otherwise returns path +%% @doc returns canonical target of path if path is a link, otherwise returns path -spec resolve_link(string()) -> string(). - resolve_link(Path) -> case file:read_link(Path) of {ok, Target} -> @@ -310,9 +309,8 @@ resolve_link(Path) -> {error, _} -> Path end. -%% splits a path into dirname and basename +%% @doc splits a path into dirname and basename -spec split_dirname(string()) -> {string(), string()}. - split_dirname(Path) -> {filename:dirname(Path), filename:basename(Path)}. |