Mercurial Hosting > luan
comparison core/src/luan/modules/IoLuan.java @ 432:d9df6d6cb927
finish fixing LuanTable to use metatables
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 02 May 2015 23:41:59 -0600 |
parents | 3ffe8ba5b297 |
children | c6bcb8859b93 |
comparison
equal
deleted
inserted
replaced
431:3ffe8ba5b297 | 432:d9df6d6cb927 |
---|---|
415 File[] files = file.listFiles(); | 415 File[] files = file.listFiles(); |
416 if( files==null ) | 416 if( files==null ) |
417 return null; | 417 return null; |
418 LuanTable list = new LuanTable(); | 418 LuanTable list = new LuanTable(); |
419 for( File f : files ) { | 419 for( File f : files ) { |
420 list.rawAdd(new LuanFile(luan,f).table()); | 420 list.rawPut(list.rawLength()+1,new LuanFile(luan,f).table()); |
421 } | 421 } |
422 return list; | 422 return list; |
423 } | 423 } |
424 | 424 |
425 public LuanTable parent(LuanState luan) throws LuanException, IOException { | 425 public LuanTable parent(LuanState luan) throws LuanException, IOException { |