aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/file.erl
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2014-03-19 10:11:31 +0100
committerHenrik Nord <[email protected]>2014-03-19 10:11:34 +0100
commitd9323a2131ae1a61faa02070390dde8de5623eaf (patch)
tree2edd7a536c335e49fbf0e9262908fa5eee5b8130 /lib/kernel/src/file.erl
parent14d1232bf4fba473772764fa7be0c385af642993 (diff)
parentb45af5f9608d5dc79a5f201afdcc9a7e28e7ba83 (diff)
downloadotp-d9323a2131ae1a61faa02070390dde8de5623eaf.tar.gz
otp-d9323a2131ae1a61faa02070390dde8de5623eaf.tar.bz2
otp-d9323a2131ae1a61faa02070390dde8de5623eaf.zip
Merge branch 'josevalim/set_cwd-typespec'
* josevalim/set_cwd-typespec: Correct file:set_cwd/1 typespec OTP-11787
Diffstat (limited to 'lib/kernel/src/file.erl')
-rw-r--r--lib/kernel/src/file.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl
index 23cf74f80f..20b703e084 100644
--- a/lib/kernel/src/file.erl
+++ b/lib/kernel/src/file.erl
@@ -199,7 +199,8 @@ get_cwd(Drive) ->
check_and_call(get_cwd, [file_name(Drive)]).
-spec set_cwd(Dir) -> ok | {error, Reason} when
- Dir :: name(),
+ Dir :: name() | EncodedBinary,
+ EncodedBinary :: binary(),
Reason :: posix() | badarg | no_translation.
set_cwd(Dirname) ->