diff src/luan/lib/OsLib.java @ 160:138b9baee80b

include IoLib.LuanFile fns in OsLib.LuanFile; improve PickleClient error output; git-svn-id: https://luan-java.googlecode.com/svn/trunk@161 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 19 Jun 2014 07:02:16 +0000
parents cc3a0578edac
children d310ebf4d6e7
line wrap: on
line diff
--- a/src/luan/lib/OsLib.java	Thu Jun 19 04:40:12 2014 +0000
+++ b/src/luan/lib/OsLib.java	Thu Jun 19 07:02:16 2014 +0000
@@ -41,10 +41,6 @@
 			return new LuanFile(new File(file,name)).table();
 		}
 
-		public LuanTable io_file() {
-			return new IoLib.LuanFile(file).table();
-		}
-
 		public LuanTable children() {
 			File[] files = file.listFiles();
 			if( files==null )
@@ -57,11 +53,8 @@
 		}
 
 		LuanTable table() {
-			LuanTable tbl = new LuanTable();
+			LuanTable tbl = new IoLib.LuanFile(file).table();
 			try {
-				tbl.put( "to_string", new LuanJavaFunction(
-					File.class.getMethod( "toString" ), file
-				) );
 				tbl.put( "name", new LuanJavaFunction(
 					File.class.getMethod( "getName" ), file
 				) );
@@ -89,9 +82,6 @@
 				tbl.put( "child", new LuanJavaFunction(
 					LuanFile.class.getMethod( "child", String.class ), this
 				) );
-				tbl.put( "io_file", new LuanJavaFunction(
-					LuanFile.class.getMethod( "io_file" ), this
-				) );
 				tbl.put( "children", new LuanJavaFunction(
 					LuanFile.class.getMethod( "children" ), this
 				) );