@Test void deleteIfExistsNonExistingFile() { final Path file = tempDir.resolve("non-existing.txt"); IoUtil.deleteIfExists(file.toFile()); assertFalse(Files.exists(file)); }
public static void deleteIfExists(final File file) { try { Files.deleteIfExists(file.toPath()); } catch (final IOException ex) { LangUtil.rethrowUnchecked(ex); } }
IoUtil { public static void deleteIfExists(final File file) { try { Files.deleteIfExists(file.toPath()); } catch (final IOException ex) { LangUtil.rethrowUnchecked(ex); } } }
IoUtil { public static void deleteIfExists(final File file) { try { Files.deleteIfExists(file.toPath()); } catch (final IOException ex) { LangUtil.rethrowUnchecked(ex); } } private  IoUtil(); }
IoUtil { public static void deleteIfExists(final File file) { try { Files.deleteIfExists(file.toPath()); } catch (final IOException ex) { LangUtil.rethrowUnchecked(ex); } } private  IoUtil(); static void fill(final FileChannel fileChannel, final long position, final long length, final byte value); static void delete(final File file, final boolean ignoreFailures); static void delete(final File file, final ErrorHandler errorHandler); static void ensureDirectoryExists(final File directory, final String descriptionLabel); static void ensureDirectoryIsRecreated(
        final File directory, final String descriptionLabel, final BiConsumer<String, String> callback); static void deleteIfExists(final File file); static void deleteIfExists(final File file, final ErrorHandler errorHandler); static FileChannel createEmptyFile(final File file, final long length); static FileChannel createEmptyFile(final File file, final long length, final boolean fillWithZeros); static MappedByteBuffer mapExistingFile(final File location, final String descriptionLabel); static MappedByteBuffer mapExistingFile(
        final File location, final String descriptionLabel, final long offset, final long length); static MappedByteBuffer mapExistingFile(
        final File location, final FileChannel.MapMode mapMode, final String descriptionLabel); static MappedByteBuffer mapExistingFile(
        final File location,
        final FileChannel.MapMode mapMode,
        final String descriptionLabel,
        final long offset,
        final long length); static MappedByteBuffer mapNewFile(final File location, final long length); static MappedByteBuffer mapNewFile(final File location, final long length, final boolean fillWithZeros); static void checkFileExists(final File file, final String name); static void unmap(final MappedByteBuffer buffer); static long map(
        final FileChannel fileChannel, final FileChannel.MapMode mode, final long offset, final long length); static void unmap(final FileChannel fileChannel, final long address, final long length); static void unmap(final ByteBuffer buffer); static String tmpDirName(); static void removeTrailingSlashes(final StringBuilder builder); }
IoUtil { public static void deleteIfExists(final File file) { try { Files.deleteIfExists(file.toPath()); } catch (final IOException ex) { LangUtil.rethrowUnchecked(ex); } } private  IoUtil(); static void fill(final FileChannel fileChannel, final long position, final long length, final byte value); static void delete(final File file, final boolean ignoreFailures); static void delete(final File file, final ErrorHandler errorHandler); static void ensureDirectoryExists(final File directory, final String descriptionLabel); static void ensureDirectoryIsRecreated(
        final File directory, final String descriptionLabel, final BiConsumer<String, String> callback); static void deleteIfExists(final File file); static void deleteIfExists(final File file, final ErrorHandler errorHandler); static FileChannel createEmptyFile(final File file, final long length); static FileChannel createEmptyFile(final File file, final long length, final boolean fillWithZeros); static MappedByteBuffer mapExistingFile(final File location, final String descriptionLabel); static MappedByteBuffer mapExistingFile(
        final File location, final String descriptionLabel, final long offset, final long length); static MappedByteBuffer mapExistingFile(
        final File location, final FileChannel.MapMode mapMode, final String descriptionLabel); static MappedByteBuffer mapExistingFile(
        final File location,
        final FileChannel.MapMode mapMode,
        final String descriptionLabel,
        final long offset,
        final long length); static MappedByteBuffer mapNewFile(final File location, final long length); static MappedByteBuffer mapNewFile(final File location, final long length, final boolean fillWithZeros); static void checkFileExists(final File file, final String name); static void unmap(final MappedByteBuffer buffer); static long map(
        final FileChannel fileChannel, final FileChannel.MapMode mode, final long offset, final long length); static void unmap(final FileChannel fileChannel, final long address, final long length); static void unmap(final ByteBuffer buffer); static String tmpDirName(); static void removeTrailingSlashes(final StringBuilder builder); static final int BLOCK_SIZE; }