Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getNameCount (0.54 sec)

  1. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/impl/SingleDepthFileAccessTracker.java

            this.baseDir = baseDir.toPath().toAbsolutePath();
            this.startNameIndex = this.baseDir.getNameCount();
            this.endNameIndex = startNameIndex + depth;
        }
    
        @Override
        public void markAccessed(File file) {
            Path path = file.toPath().toAbsolutePath();
            if (path.getNameCount() >= endNameIndex && path.startsWith(baseDir)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/MoreFiles.java

          // "\foo" ("\" - current drive for process on Windows)
          // "C:foo" ("C:" - working dir of drive C on Windows)
          return parent;
        }
    
        // Paths that don't have a parent:
        if (path.getNameCount() == 0) {
          // "/", "C:\", "\" (no parent)
          // "" (undefined, though typically parent of working dir)
          // "C:" (parent of working dir of drive C on Windows)
          //
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 34.3K bytes
    - Viewed (0)
Back to top