fixed process when yml file exist in .git folder

* ignore when yml file exist in .git folder
This commit is contained in:
DustInDark
2022-03-30 20:59:57 +09:00
parent 425a629de7
commit 7c645010ee

View File

@@ -154,6 +154,11 @@ impl ParseYaml {
return io::Result::Ok(ret);
}
// ignore if yml file in .git folder.
if path.to_str().unwrap().contains("/.git/") {
return io::Result::Ok(ret);
}
// 個別のファイルの読み込みは即終了としない。
let read_content = self.read_file(path);
if read_content.is_err() {