Added the possibility to ignore system files (prefixed by '.') in emptyDirectory method.