Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for isDirectory (0.43 sec)

  1. src/main/java/jcifs/http/NetworkExplorer.java

            if ( f1.isDirectory() != f2.isDirectory() ) {
                return f1.isDirectory() ? -1 : 1;
            }
            return f1name.compareToIgnoreCase(f2.getName());
        }
    
    
        protected int compareSizes ( SmbFile f1, String f1name, SmbFile f2 ) throws IOException {
            long diff;
    
            if ( f1.isDirectory() != f2.isDirectory() ) {
                return f1.isDirectory() ? -1 : 1;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 21.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/http/NetworkExplorer.java

            if( f1.isDirectory() != f2.isDirectory() ) {
                return f1.isDirectory() ? -1 : 1;
            }
            return f1name.compareToIgnoreCase( f2.getName() );
        }
        protected int compareSizes( SmbFile f1, String f1name, SmbFile f2 ) throws IOException {
            long diff;
    
            if( f1.isDirectory() != f2.isDirectory() ) {
                return f1.isDirectory() ? -1 : 1;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Wed Jan 22 03:57:31 GMT 2020
    - 19.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/MoreFilesTest.java

          Files.createSymbolicLink(symlinkToFile, file);
    
          assertTrue(MoreFiles.isDirectory().apply(symlinkToDir));
          assertFalse(MoreFiles.isRegularFile().apply(symlinkToDir));
    
          assertFalse(MoreFiles.isDirectory().apply(symlinkToFile));
          assertTrue(MoreFiles.isRegularFile().apply(symlinkToFile));
    
          assertFalse(MoreFiles.isDirectory(NOFOLLOW_LINKS).apply(symlinkToDir));
    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)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/PathModularization.java

                 * source files.
                 */
                if (Files.isDirectory(file)) {
                    Map<Path, String> names = new HashMap<>();
                    try (Stream<Path> subdirs = Files.list(file)) {
                        subdirs.filter(Files::isDirectory).forEach((subdir) -> {
                            Path mf = subdir.resolve(MODULE_INFO);
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultRootLocator.java

    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.services.model.*;
    
    @Named
    public class DefaultRootLocator implements RootLocator {
    
        public boolean isRootDirectory(Path dir) {
            if (Files.isDirectory(dir.resolve(".mvn"))) {
                return true;
            }
            // we're too early to use the modelProcessor ...
            Path pom = dir.resolve("pom.xml");
            try (InputStream is = Files.newInputStream(pom)) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Files.java

          new SuccessorsFunction<File>() {
            @Override
            public Iterable<File> successors(File file) {
              // check isDirectory() just because it may be faster than listFiles() on a non-directory
              if (file.isDirectory()) {
                File[] files = file.listFiles();
                if (files != null) {
                  return Collections.unmodifiableList(Arrays.asList(files));
                }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/EnumTest.java

                            System.err.println(serv.getName());
                            assertEquals(SmbConstants.TYPE_SERVER, serv.getType());
                            assertTrue(serv.isDirectory());
                        }
                    }
                }
            }
            catch ( SmbUnsupportedOperationException e ) {
                Assume.assumeTrue("Browsing unsupported", false);
            }
        }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

            assertArgumentNotNull("handler", handler);
    
            final int pos = prefix.length();
            for (final JarEntry entry : iterable(jarFile.entries())) {
                if (!entry.isDirectory()) {
                    final String entryName = entry.getName().replace('\\', '/');
                    if (!entryName.startsWith(prefix)) {
                        continue;
                    }
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/job/SuggestJob.java

            final String userDir = System.getProperty("user.dir");
            final File targetDir = new File(userDir, "target");
            final File targetClassesDir = new File(targetDir, "classes");
            if (targetClassesDir.isDirectory()) {
                buf.append(cpSeparator);
                buf.append(targetClassesDir.getAbsolutePath());
            }
            // WEB-INF/lib
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PathModularization.java

                 * source files.
                 */
                if (Files.isDirectory(file)) {
                    Map<Path, String> names = new HashMap<>();
                    try (Stream<Path> subdirs = Files.list(file)) {
                        subdirs.filter(Files::isDirectory).forEach((subdir) -> {
                            Path mf = subdir.resolve(MODULE_INFO);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top