workable rmtree
implement pure php file util functions