Mercurial Hosting > luan
changeset 1313:15af473045c4
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 25 Jan 2019 01:30:35 -0700 |
parents | 60d013d5c7ef |
children | 51a1987b55a3 |
files | src/luan/modules/IoLuan.java |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
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() )