diff --git a/src/main/java/gov/loc/repository/bagit/creator/BagCreator.java b/src/main/java/gov/loc/repository/bagit/creator/BagCreator.java index c3c5e151e..7fa970ad7 100644 --- a/src/main/java/gov/loc/repository/bagit/creator/BagCreator.java +++ b/src/main/java/gov/loc/repository/bagit/creator/BagCreator.java @@ -137,7 +137,7 @@ private static Bag bagInPlace(final Version version, final Path root, final Coll private static void moveDataFilesIfNeeded(final Bag bag, final boolean includeHidden) throws IOException { if(bag.getVersion().isOlder(DOT_BAGIT_VERSION)) { - Path tempDir = bag.getRootDir().resolve(System.currentTimeMillis() + ".temp"); + final Path tempDir = bag.getRootDir().resolve(System.currentTimeMillis() + ".temp"); Files.createDirectory(tempDir); moveDataFiles(bag.getRootDir(), tempDir, includeHidden); Files.move(tempDir, PathUtils.getDataDir(bag));