RENAME Rename a file or directory on an SFTP server. Syntax: RENAME(H, OLDNAME, NEWNAME) Description: RENAME(H, OLDNAME, NEWNAME) renames or moves a file on the server. Examples: rename(h, oldname, newname) See also: SFTP Authors: Joan Pau Beltran <joanpau.beltran@socib.cat>
0001 function rename(h, oldname, newname) 0002 %RENAME Rename a file or directory on an SFTP server. 0003 % 0004 % Syntax: 0005 % RENAME(H, OLDNAME, NEWNAME) 0006 % 0007 % Description: 0008 % RENAME(H, OLDNAME, NEWNAME) renames or moves a file on the server. 0009 % 0010 % Examples: 0011 % rename(h, oldname, newname) 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('rename', h.sftp_handle, oldname, newname); 0037 0038 end