package net.openhft.chronicle.queue.impl.single;

import net.openhft.chronicle.core.Jvm;

import java.io.File;

public enum PrecreatedFiles {
    ;

    private static final String PRE_CREATED_FILE_SUFFIX = ".precreated";

    public static void renamePreCreatedFileToRequiredFile(final File requiredQueueFile) {
        final File preCreatedFile = preCreatedFile(requiredQueueFile);
        if (preCreatedFile.exists()) {
            if (!preCreatedFile.renameTo(requiredQueueFile)) {
                Jvm.warn().on(PrecreatedFiles.class, "Failed to rename pre-created queue file");
            }
        }
    }

    public static File preCreatedFile(final File requiredQueueFile) {
        return new File(requiredQueueFile.getParentFile(), requiredQueueFile.getName() +
                PRE_CREATED_FILE_SUFFIX);
    }
}
@@ -640,24 +640,36 @@
 eCreatedFile
+ForStoreFile
 (final File 
@@ -668,36 +668,36 @@
 al File required
-Queu
+Stor
 eFile) %7B%0A       
@@ -713,36 +713,36 @@
 ew File(required
-Queu
+Stor
 eFile.getParentF
@@ -760,27 +760,347 @@
 ired
-QueueFile.getName()
+StoreFile.getName() +%0A                PRE_CREATED_FILE_SUFFIX);%0A    %7D%0A%0A    public static File preCreatedFile(final File requiredQueueFile) %7B%0A        final String fileName = requiredQueueFile.getName();%0A        final String name = fileName.substring(0, fileName.length() - 4);%0A        return new File(requiredQueueFile.getParentFile(), name
  +%0A 

Add extra method to deal with differing file-name formats