public static File createTmpFile(String dir, String prefix, String suffix) throws IOException {
        return Files.createTempFile(Paths.get(dir), prefix, suffix).toFile();
    }
@Test
    void testCreateTmpFile() throws IOException {
        File tmpFile = null;
        try {
            tmpFile = DiskUtils.createTmpFile("nacos1", ".ut");
            assertTrue(tmpFile.getName().startsWith("nacos1"));
            assertTrue(tmpFile.getName().endsWith(".ut"));
        } finally {
            if (tmpFile != null) {
                tmpFile.deleteOnExit();
            }
        }
    }