view files and list directories with order