Salome HOME
Creation of a new study from an existing one is implemented.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / util / IOUtils.java
index 3bf960e35f6275579223fc708227a0d6f63cb77b..e0a78982abba8d1f07132ba6d4375ec6f82021b8 100644 (file)
@@ -117,6 +117,10 @@ public final class IOUtils {
                FileInputStream inputStream = new FileInputStream(src);
                try {
 
+                       // Create target directory if necessary
+                       if (!target.getParentFile().exists()) {
+                               target.getParentFile().mkdirs();
+                       }
                        FileOutputStream outputStream = new FileOutputStream(target);
                        try {