From f5cd8f27f3635c922b39a8224fb0819063cd4ee4 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Thu, 17 Feb 2022 09:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5=20.gitkeep=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: a1012112796 <1012112796@qq.com> --- mkromfs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkromfs.py b/mkromfs.py index 876afe8..bdb526d 100644 --- a/mkromfs.py +++ b/mkromfs.py @@ -137,6 +137,9 @@ class Folder(object): body_li = [] payload_li = [] for c in self._children: + if c.name == '.gitkeep': + continue + entry_size = c.entry_size if isinstance(c, File): tp = 'ROMFS_DIRENT_FILE'