You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
override fun setupBundlePath(path: String?, extension: String?, promise: Promise) { if (path != null) { deleteOldBundleIfneeded()
this line delete new zip bundle so we can't extract zip => update fail.
Hopefully, you will fix it in next version
here is my temp solution:
private fun deleteDirectory(directory: File): Boolean { if (directory.isDirectory) { // List all files and directories in the current directory val files = directory.listFiles() if (files != null) { // Recursively delete all files and directories for (file in files) { if(file.path.contains("ReactNativeBlobUtil")) continue; if (!deleteDirectory(file)) { return false } } } } // Finally, delete the empty directory or file return directory.delete() }
The text was updated successfully, but these errors were encountered:
override fun setupBundlePath(path: String?, extension: String?, promise: Promise) { if (path != null) { deleteOldBundleIfneeded()
this line delete new zip bundle so we can't extract zip => update fail.
Hopefully, you will fix it in next version
here is my temp solution:
private fun deleteDirectory(directory: File): Boolean { if (directory.isDirectory) { // List all files and directories in the current directory val files = directory.listFiles() if (files != null) { // Recursively delete all files and directories for (file in files) { if(file.path.contains("ReactNativeBlobUtil")) continue; if (!deleteDirectory(file)) { return false } } } } // Finally, delete the empty directory or file return directory.delete() }
The text was updated successfully, but these errors were encountered: