added log clear button, fixed bug on recursive getdir