dir java module and dir tree
enhance for saving file