Walks a target path on disk and returns an object containing directory and file information.