JAL-4118 fix a small buglet in BackupFiles exhibited in tests on build server. Possib...
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 26 Jan 2023 16:44:51 +0000 (16:44 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 26 Jan 2023 16:44:51 +0000 (16:44 +0000)
src/jalview/io/BackupFiles.java

index 9112042..14c1260 100644 (file)
@@ -253,6 +253,7 @@ public class BackupFiles
       {
         String tempfilename = file.getName();
         File tempdir = file.getParentFile();
+        tempdir.mkdirs();
         Console.trace(
                 "BACKUPFILES [file!=null] attempting to create temp file for "
                         + tempfilename + " in dir " + tempdir);