diff core/src/luan/modules/IoLuan.java @ 759:ae612dfc57cb 0.21

better handling of longs in rpc and json
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 19 Jul 2016 09:09:41 -0600
parents c29d11d675fd
children 99356cfde2f0
line wrap: on
line diff
--- a/core/src/luan/modules/IoLuan.java	Tue Jul 19 00:57:37 2016 -0600
+++ b/core/src/luan/modules/IoLuan.java	Tue Jul 19 09:09:41 2016 -0600
@@ -619,6 +619,9 @@
 				tbl.rawPut( "last_modified", new LuanJavaFunction(
 					File.class.getMethod( "lastModified" ), file
 				) );
+				tbl.rawPut( "length", new LuanJavaFunction(
+					File.class.getMethod( "length" ), file
+				) );
 				tbl.rawPut( "child", new LuanJavaFunction(
 					LuanFile.class.getMethod( "child", LuanState.class, String.class ), this
 				) );