diff options
Diffstat (limited to 'lib')
-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]). |