aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2012-11-27 16:50:15 +0100
committerFredrik Gustafsson <[email protected]>2012-11-27 16:50:15 +0100
commit6c82d9eb6476216458a5762edb41cecd3d4d595e (patch)
treec2fc04155435132f9135613a73606e6641af30f5 /lib
parent9971f38968b19ba90e0267b8c7a549fc568d5611 (diff)
downloadotp-6c82d9eb6476216458a5762edb41cecd3d4d595e.tar.gz
otp-6c82d9eb6476216458a5762edb41cecd3d4d595e.tar.bz2
otp-6c82d9eb6476216458a5762edb41cecd3d4d595e.zip
Added a file_is_a_directory to a proper status return
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh/src/ssh_xfer.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_xfer.erl b/lib/ssh/src/ssh_xfer.erl
index d5b6dd03d1..e72e2e982f 100644
--- a/lib/ssh/src/ssh_xfer.erl
+++ b/lib/ssh/src/ssh_xfer.erl
@@ -383,6 +383,7 @@ decode_status(Status) ->
?SSH_FX_UNKNOWN_PRINCIPLE -> unknown_principle;
?SSH_FX_LOCK_CONFlICT -> lock_conflict;
?SSH_FX_NOT_A_DIRECTORY -> not_a_directory;
+ ?SSH_FX_FILE_IS_A_DIRECTORY -> file_is_a_directory;
_ -> {error,Status}
end.
@@ -392,6 +393,7 @@ encode_erlang_status(Status) ->
eof -> ?SSH_FX_EOF;
enoent -> ?SSH_FX_NO_SUCH_FILE;
eacces -> ?SSH_FX_PERMISSION_DENIED;
+ eisdir -> ?SSH_FX_FILE_IS_A_DIRECTORY;
_ -> ?SSH_FX_FAILURE
end.