mirror of
https://gitee.com/shuto/cordova-plugin-dbcopy.git
synced 2026-04-13 00:00:13 +08:00
Update to support file:// format also
This commit is contained in:
@@ -163,11 +163,13 @@ public class sqlDB extends CordovaPlugin {
|
||||
|
||||
if(dest.indexOf("file://") != -1){
|
||||
destination = new File(dest.replace("file://","") + dbname);
|
||||
destFolder = new File(dest.replace("file://",""));
|
||||
} else {
|
||||
destination = new File(dest + dbname);
|
||||
destFolder = new File(dest);
|
||||
}
|
||||
|
||||
destFolder = new File(dest);
|
||||
|
||||
|
||||
if(!destFolder.exists()){
|
||||
destFolder.mkdirs();
|
||||
|
||||
Reference in New Issue
Block a user