diff options
author | Björn-Egil Dahlberg <[email protected]> | 2011-11-30 18:12:31 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2011-12-02 15:41:14 +0100 |
commit | 4ee95bc5c0113da005feeded022876383879d55c (patch) | |
tree | f435c7bd7430509edb2c1c257e43780e3365cbd3 /lib/kernel/src/file.erl | |
parent | 4545abc3bc54ac9be175a53f19ed62fcd3911794 (diff) | |
download | otp-4ee95bc5c0113da005feeded022876383879d55c.tar.gz otp-4ee95bc5c0113da005feeded022876383879d55c.tar.bz2 otp-4ee95bc5c0113da005feeded022876383879d55c.zip |
Add spec for file:read_link_info/2
Diffstat (limited to 'lib/kernel/src/file.erl')
-rw-r--r-- | lib/kernel/src/file.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl index d8ade07336..80780700ab 100644 --- a/lib/kernel/src/file.erl +++ b/lib/kernel/src/file.erl @@ -238,6 +238,12 @@ altname(Name) -> read_link_info(Name) -> check_and_call(read_link_info, [file_name(Name)]). +-spec read_link_info(Name, Opts) -> {ok, FileInfo} | {error, Reason} when + Name :: name(), + Opts :: list(), + FileInfo :: file_info(), + Reason :: posix() | badarg. + read_link_info(Name, Opts) when is_list(Opts) -> check_and_call(read_link_info, [file_name(Name),Opts]). @@ -264,7 +270,6 @@ write_file_info(Name, Info = #file_info{}) -> FileInfo :: file_info(), Reason :: posix() | badarg. - write_file_info(Name, Info = #file_info{}, Opts) when is_list(Opts) -> check_and_call(write_file_info, [file_name(Name), Info, Opts]). |