Mercurial Hosting > luan
diff src/luan/modules/IoLuan.java @ 1795:745f756e719b
make copy_to recursive
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 02 Jan 2024 21:49:54 -0700 |
parents | 2dbcc8360a3e |
children |
line wrap: on
line diff
--- a/src/luan/modules/IoLuan.java Sat Dec 30 18:41:35 2023 -0700 +++ b/src/luan/modules/IoLuan.java Tue Jan 02 21:49:54 2024 -0700 @@ -455,7 +455,7 @@ File dest = objToFile(luan,destObj); if( dest==null ) throw new LuanException( "bad argument #1 to 'copy_to' (string or file table expected)" ); - IoUtils.copy(file,dest); + IoUtils.copyRecursively(file,dest); } public void link_from(Luan luan,Object linkObj) throws LuanException, IOException {