Mercurial Hosting > luan
diff src/luan/modules/IoLuan.java @ 1313:15af473045c4
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 25 Jan 2019 01:30:35 -0700 |
parents | ca742d51b31f |
children | f41919741100 |
line wrap: on
line diff
--- a/src/luan/modules/IoLuan.java Thu Jan 24 21:56:53 2019 -0700 +++ b/src/luan/modules/IoLuan.java Fri Jan 25 01:30:35 2019 -0700 @@ -463,12 +463,10 @@ } private static void delete(File file) throws LuanException { - if( !isSymbolicLink(file) ) { - File[] children = file.listFiles(); - if( children != null ) { - for( File child : children ) { - delete(child); - } + File[] children = file.listFiles(); + if( children != null && !isSymbolicLink(file) ) { + for( File child : children ) { + delete(child); } } if( !file.delete() )