Also `get_all_files` must have 2 modes, only for files and for files with dirs, because i use it in views/static files search.