From: Ben Soares Date: Thu, 26 Jan 2023 16:44:51 +0000 (+0000) Subject: JAL-4118 fix a small buglet in BackupFiles exhibited in tests on build server. Possib... X-Git-Tag: Release_2_11_3_0~23^2~8^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cd443f0faad6561791b4ae9a617bed680036959a;p=jalview.git JAL-4118 fix a small buglet in BackupFiles exhibited in tests on build server. Possible problem with filename with dirs in passed to BackupFiles. --- diff --git a/src/jalview/io/BackupFiles.java b/src/jalview/io/BackupFiles.java index 9112042..14c1260 100644 --- a/src/jalview/io/BackupFiles.java +++ b/src/jalview/io/BackupFiles.java @@ -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);