Skip to content

Commit

Permalink
fix FileNotFoundException / add ignore file list (cfig#68)
Browse files Browse the repository at this point in the history
* fix FileNotFoundException

magisk patch boot, ramdisk add backup file don't create(add) parent dir

* add git ignore file

add ignore file list :
boot.img*
local.properties
  • Loading branch information
rover12421 authored and MNoxx74 committed Nov 17, 2021
1 parent ce9a72a commit 8e73027
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea
.gradle
build/
boot.img*
local.properties
2 changes: 1 addition & 1 deletion bbootimg/src/main/kotlin/bootimg/cpio/AndroidCpio.kt
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class AndroidCpio {
}
entry.isRegularFile -> {
entryInfo.note = ("REG " + entryInfo.note)
File(outEntryName).writeBytes(buffer)
File(outEntryName).also { it.parentFile.mkdirs() }.writeBytes(buffer)
if (EnvironmentVerifier().isWindows) {
//Windows: Posix not supported
} else {
Expand Down

0 comments on commit 8e73027

Please sign in to comment.