diff src/luan/modules/IoLuan.java @ 1662:d6a50ed9604f

file.move_to
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 02 May 2022 19:15:42 -0600
parents 08177ced7fa0
children 8f38abaf779f
line wrap: on
line diff
--- a/src/luan/modules/IoLuan.java	Mon May 02 18:56:55 2022 -0600
+++ b/src/luan/modules/IoLuan.java	Mon May 02 19:15:42 2022 -0600
@@ -446,17 +446,17 @@
 			return file.exists();
 		}
 
-		public void rename_to(Luan luan,Object destObj) throws LuanException, IOException {
+		public void move_to(Luan luan,Object destObj) throws LuanException, IOException {
 			File dest = objToFile(luan,destObj);
 			if( dest==null )
-				throw new LuanException( "bad argument #1 to 'rename_to' (string or file table expected)" );
+				throw new LuanException( "bad argument #1 to 'move_to' (string or file table expected)" );
 			IoUtils.move(file,dest);
 		}
 
 		public void copy_to(Luan luan,Object destObj) throws LuanException, IOException {
 			File dest = objToFile(luan,destObj);
 			if( dest==null )
-				throw new LuanException( "bad argument #1 to 'rename_to' (string or file table expected)" );
+				throw new LuanException( "bad argument #1 to 'copy_to' (string or file table expected)" );
 			IoUtils.copy(file,dest);
 		}