Implement local directory recursive traversing for metadata gathering