@Test void testListFilesBadDirectory() { final File file = new File(getClass().getResource("/resource.nq").getFile()); final File dir = new File(file.getParentFile(), "nonexistent"); final Path path = dir.toPath(); assertThrows(UncheckedIOException.class, () -> FileUtils.uncheckedList(path)); }
public static Stream<Path> uncheckedList(final Path path) { try { return Files.list(path); } catch (final IOException ex) { throw new UncheckedIOException("Error fetching file list", ex); } }
FileUtils { public static Stream<Path> uncheckedList(final Path path) { try { return Files.list(path); } catch (final IOException ex) { throw new UncheckedIOException("Error fetching file list", ex); } } }
FileUtils { public static Stream<Path> uncheckedList(final Path path) { try { return Files.list(path); } catch (final IOException ex) { throw new UncheckedIOException("Error fetching file list", ex); } } private  FileUtils(); }
FileUtils { public static Stream<Path> uncheckedList(final Path path) { try { return Files.list(path); } catch (final IOException ex) { throw new UncheckedIOException("Error fetching file list", ex); } } private  FileUtils(); static File getResourceDirectory(final File baseDirectory, final IRI identifier); static Stream<Quad> parseQuad(final String line); static boolean filterServerManagedQuads(final Quad quad); static boolean uncheckedDeleteIfExists(final Path path); static Stream<Path> uncheckedList(final Path path); static void writeMemento(final File resourceDir, final Resource resource,
            final Instant time); static InputStream getBoundedStream(final InputStream stream, final int from, final int to); static String serializeQuad(final Quad quad); static File getNquadsFile(final File dir, final Instant time); }
FileUtils { public static Stream<Path> uncheckedList(final Path path) { try { return Files.list(path); } catch (final IOException ex) { throw new UncheckedIOException("Error fetching file list", ex); } } private  FileUtils(); static File getResourceDirectory(final File baseDirectory, final IRI identifier); static Stream<Quad> parseQuad(final String line); static boolean filterServerManagedQuads(final Quad quad); static boolean uncheckedDeleteIfExists(final Path path); static Stream<Path> uncheckedList(final Path path); static void writeMemento(final File resourceDir, final Resource resource,
            final Instant time); static InputStream getBoundedStream(final InputStream stream, final int from, final int to); static String serializeQuad(final Quad quad); static File getNquadsFile(final File dir, final Instant time); static final String CONFIG_FILE_LDP_TYPE; static final String CONFIG_FILE_DIGEST_ALGORITHM; static final int LENGTH; static final int MAX; }