makeing tree builder in core.file_ops