Function get_posts

Source
pub fn get_posts(file_path: &str) -> Result<Vec<Post>, Box<dyn Error>>
Expand description

Logic in this function:

  • finds entries,
  • determines whether they are posts or comments, and
  • assigns comments to their posts