ls implementation on groovy