CLOSE Close a connection with an SFTP server. Syntax: CLOSE(H) Description: CLOSE(H) closes the connection with the server. Examples: close(h) See also: SFTP Authors: Joan Pau Beltran <joanpau.beltran@socib.cat>
0001 function close(h) 0002 %CLOSE Close a connection with an SFTP server. 0003 % 0004 % Syntax: 0005 % CLOSE(H) 0006 % 0007 % Description: 0008 % CLOSE(H) closes the connection with the server. 0009 % 0010 % Examples: 0011 % close(h) 0012 % 0013 % See also: 0014 % SFTP 0015 % 0016 % Authors: 0017 % Joan Pau Beltran <joanpau.beltran@socib.cat> 0018 0019 % Copyright (C) 2014-2016 0020 % ICTS SOCIB - Servei d'observacio i prediccio costaner de les Illes Balears 0021 % <http://www.socib.es> 0022 % 0023 % This program is free software: you can redistribute it and/or modify 0024 % it under the terms of the GNU General Public License as published by 0025 % the Free Software Foundation, either version 3 of the License, or 0026 % (at your option) any later version. 0027 % 0028 % This program is distributed in the hope that it will be useful, 0029 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0030 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0031 % GNU General Public License for more details. 0032 % 0033 % You should have received a copy of the GNU General Public License 0034 % along with this program. If not, see <http://www.gnu.org/licenses/>. 0035 0036 mexsftp('disconnect', h.sftp_handle); 0037 0038 end