Tree structured file processing