Mercurial Hosting > luan
comparison core/src/luan/modules/PackageLuan.java @ 722:647602e8291a
add url options
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 03 Jun 2016 17:51:58 -0600 |
parents | b620b8e1010f |
children |
comparison
equal
deleted
inserted
replaced
721:524ea0056573 | 722:647602e8291a |
---|---|
63 } | 63 } |
64 return mod; | 64 return mod; |
65 } | 65 } |
66 | 66 |
67 static String read(LuanState luan,String uri) throws LuanException { | 67 static String read(LuanState luan,String uri) throws LuanException { |
68 LuanTable t = IoLuan.uri(luan,uri); | 68 LuanTable t = IoLuan.uri(luan,uri,null); |
69 if( t == null ) | 69 if( t == null ) |
70 return null; | 70 return null; |
71 LuanFunction existsFn = (LuanFunction)t.get(luan,"exists"); | 71 LuanFunction existsFn = (LuanFunction)t.get(luan,"exists"); |
72 boolean exists = (Boolean)Luan.first(existsFn.call(luan)); | 72 boolean exists = (Boolean)Luan.first(existsFn.call(luan)); |
73 if( !exists ) | 73 if( !exists ) |