fn append_directory_layout( root: &Path, directory_path: &Path, output: &mut Vec<u8>, ) -> Option<()>