- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for Dir (0.14 sec)
-
android/guava/src/com/google/common/io/PatternFilenameFilter.java
this.pattern = Preconditions.checkNotNull(pattern); } /* * Our implementation works fine with a null `dir`. However, there's nothing in the documentation * of the supertype that suggests that implementations are expected to tolerate null. That said, I * see calls in Google code that pass a null `dir` to a FilenameFilter.... So let's declare the
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 17 14:35:11 GMT 2023 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java
} public void testAccept() { File dir = new File("foo"); FilenameFilter filter = new PatternFilenameFilter("a+"); assertTrue(filter.accept(dir, "a")); assertTrue(filter.accept(dir, "aaaa")); assertFalse(filter.accept(dir, "b")); // Show that dir is ignored assertTrue(filter.accept(null, "a")); } public void testNulls() throws Exception {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
Files.createDirectories(fs.getPath("dir/b/i/j/l")); Files.createFile(fs.getPath("dir/a")); Files.createFile(fs.getPath("dir/c")); Files.createSymbolicLink(fs.getPath("dir/d"), fs.getPath("b/i")); Files.createDirectory(fs.getPath("dir/e")); Files.createSymbolicLink(fs.getPath("dir/f"), fs.getPath("/dontdelete")); Files.createFile(fs.getPath("dir/b/g"));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Jan 29 22:57:05 GMT 2024 - 27.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
File dir1 = newDir("dir-1"); newFile("dir-1/file-b"); newFile("dir-1/dir-2"); assertThat(Iterables.limit(Files.fileTraverser().breadthFirst(rootDir), 3)) .containsExactly(rootDir, fileA, dir1); } public void testFileTraverser_multipleDirectoryLayers_traversalReturnsAll() throws Exception { File fileA = newFile("file-a"); File dir1 = newDir("dir-1");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Apr 21 20:17:27 GMT 2023 - 3.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java
} public void testAccept() { File dir = new File("foo"); FilenameFilter filter = new PatternFilenameFilter("a+"); assertTrue(filter.accept(dir, "a")); assertTrue(filter.accept(dir, "aaaa")); assertFalse(filter.accept(dir, "b")); // Show that dir is ignored assertTrue(filter.accept(null, "a")); } public void testNulls() throws Exception {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Oct 06 17:11:11 GMT 2023 - 12.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
} /** * Creates a new temp dir for testing. The returned directory and all contents of it will be * deleted in the tear-down for this test. */ protected final File createTempDir() throws IOException { File tempFile = File.createTempFile("IoTestCase", ""); if (!tempFile.delete() || !tempFile.mkdir()) { throw new IOException("failed to create temp dir"); } filesToDelete.add(tempFile);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
// with/relative/directory is the Class-Path value in the mf file. Manifest manifest = manifestClasspath("with/relative/dir"); assertThat(ClassPath.getClassPathFromManifest(jarFile, manifest)) .containsExactly(fullpath("base/with/relative/dir")); } public void testGetClassPathFromManifest_relativeJar() throws IOException { File jarFile = new File("base/some.jar");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Apr 26 14:02:27 GMT 2024 - 24.9K bytes - Viewed (0) -
guava/src/com/google/common/base/StandardSystemProperty.java
/** User's account name. */ USER_NAME("user.name"), /** User's home directory. */ USER_HOME("user.home"), /** User's current working directory. */ USER_DIR("user.dir"); private final String key; StandardSystemProperty(String key) { this.key = key; } /** Returns the key used to look up this system property. */ public String key() {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 23 15:09:35 GMT 2023 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ClassPathTest.java
// with/relative/directory is the Class-Path value in the mf file. Manifest manifest = manifestClasspath("with/relative/dir"); assertThat(ClassPath.getClassPathFromManifest(jarFile, manifest)) .containsExactly(fullpath("base/with/relative/dir")); } public void testGetClassPathFromManifest_relativeJar() throws IOException { File jarFile = new File("base/some.jar");
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Jul 10 17:06:37 GMT 2023 - 27.7K bytes - Viewed (0)