fix code style
Make getFiles more consistent