minimal functional of file tree