protected void migrateOldDatabaseFile(String oldName) {
        Path oldFile = getWriteFile().getParent().resolve(oldName);
        if (Files.exists(oldFile)) {
            try {
                Files.move(oldFile, getWriteFile());
            } catch (IOException e) {
                // ignore
            }
        }
    }
Gets the path of the file the database driver actually ends up writing to.

@return the write file
common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/connection/file/FlatfileConnectionFactory.java