<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>Biggen的个人博客</title><link>https://biggenabw.github.io/notes.github.io</link><description>日记本</description><copyright>Biggen的个人博客</copyright><docs>http://www.rssboard.org/rss-specification</docs><generator>python-feedgen</generator><image><url>https://avatars.githubusercontent.com/u/275300308?s=400&amp;u=e1b807f5e92a1e02a8a372922f744abd80cb498b&amp;v=4</url><title>avatar</title><link>https://biggenabw.github.io/notes.github.io</link></image><lastBuildDate>Sat, 18 Apr 2026 17:55:36 +0000</lastBuildDate><managingEditor>Biggen的个人博客</managingEditor><ttl>60</ttl><webMaster>Biggen的个人博客</webMaster><item><title>Ensure backup folder exists before writing post files (FileNotFoundError)</title><link>https://biggenabw.github.io/notes.github.io/post/Ensure%20backup%20folder%20exists%20before%20writing%20post%20files%20%28FileNotFoundError%29.html</link><description>## Problem
Workflow fails with the error:

```
FileNotFoundError: [Errno 2] No such file or directory: 'backup/11.md'
```
This occurs because the code in `Gmeek.py` attempts to write to the `backup` directory without first ensuring the directory exists, causing workflow failures during the 'Generate new html' step.

## Solution
Update `Gmeek.py`, in the `addOnePostJson` method, to add the following line before opening or writing backup files:

```python
import os
os.makedirs(self.backup_dir, exist_ok=True)
```
This creates the `backup` folder if it does not already exist, preventing the FileNotFoundError.

## Acceptance Criteria
- The workflow no longer fails with `FileNotFoundError` related to the backup directory.
- The `Gmeek.py` script creates the `backup` directory if missing.

## Context
See [failing job logs](https://github.com/biggenabw/notes.github.io/actions/runs/24600185009/job/71937438222) for details.。</description><guid isPermaLink="true">https://biggenabw.github.io/notes.github.io/post/Ensure%20backup%20folder%20exists%20before%20writing%20post%20files%20%28FileNotFoundError%29.html</guid><pubDate>Sat, 18 Apr 2026 07:55:41 +0000</pubDate></item><item><title>11</title><link>https://biggenabw.github.io/notes.github.io/post/11.html</link><description>11。</description><guid isPermaLink="true">https://biggenabw.github.io/notes.github.io/post/11.html</guid><pubDate>Sat, 18 Apr 2026 07:50:34 +0000</pubDate></item></channel></rss>