| | |
| | | String _originalPath = "android" + File.separator + fileName; |
| | | String _destPath = context.getExternalFilesDir( |
| | | "").getAbsolutePath() + File.separator + fileName; |
| | | String _destDir = _destPath.substring(0, _destPath.lastIndexOf('/') + 1); |
| | | File _file = new File(_destDir); |
| | | if(!_file.exists()) |
| | | { |
| | | LogUtil.i(TAG,"单独拷贝 => 不存在指定路径: " + _destDir + ", 这里创建..."); |
| | | _file.mkdir(); |
| | | } |
| | | try |
| | | { |
| | | InputStream _is = context.getAssets().open(_originalPath); |
| | |
| | | String _originalPath = "android" + File.separator + fileName; |
| | | String _destPath = context.getExternalFilesDir( |
| | | "").getAbsolutePath() + File.separator + fileName; |
| | | String _destDir = _destPath.substring(0, _destPath.lastIndexOf('/') + 1); |
| | | File _file = new File(_destDir); |
| | | if(!_file.exists()) |
| | | { |
| | | LogUtil.i(TAG,"单独拷贝 => 不存在指定路径: " + _destDir + ", 这里创建..."); |
| | | _file.mkdir(); |
| | | } |
| | | try |
| | | { |
| | | InputStream _is = context.getAssets().open(_originalPath); |
| | |
| | | String _originalPath = "android" + File.separator + fileName; |
| | | String _destPath = context.getExternalFilesDir( |
| | | "").getAbsolutePath() + File.separator + fileName; |
| | | String _destDir = _destPath.substring(0, _destPath.lastIndexOf('/') + 1); |
| | | File _file = new File(_destDir); |
| | | if(!_file.exists()) |
| | | { |
| | | LogUtil.i(TAG,"单独拷贝 => 不存在指定路径: " + _destDir + ", 这里创建..."); |
| | | _file.mkdir(); |
| | | } |
| | | try |
| | | { |
| | | InputStream _is = context.getAssets().open(_originalPath); |