fix FileNotFoundException / add ignore file list (#68)

* 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
pull/80/head
Rover12421 3 years ago committed by GitHub
parent 1b8fdbe69f
commit 041a12606f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
.gitignore vendored

@ -1,3 +1,5 @@
.idea .idea
.gradle .gradle
build/ build/
boot.img*
local.properties

@ -239,7 +239,7 @@ class AndroidCpio {
} }
entry.isRegularFile -> { entry.isRegularFile -> {
entryInfo.note = ("REG " + entryInfo.note) entryInfo.note = ("REG " + entryInfo.note)
File(outEntryName).writeBytes(buffer) File(outEntryName).also { it.parentFile.mkdirs() }.writeBytes(buffer)
if (EnvironmentVerifier().isWindows) { if (EnvironmentVerifier().isWindows) {
//Windows: Posix not supported //Windows: Posix not supported
} else { } else {

Loading…
Cancel
Save