FileInputStream inputStream = new FileInputStream(src);
try {
+ // Create target directory if necessary
+ if (!target.getParentFile().exists()) {
+ target.getParentFile().mkdirs();
+ }
FileOutputStream outputStream = new FileOutputStream(target);
try {