Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for pathbuf (1.1 sec)

  1. internal/lock/lock_windows.go

    			// /../ is currently unhandled
    			return path
    		default:
    			pathbuf[w] = '\\'
    			w++
    			for ; r < n && !os.IsPathSeparator(path[r]); r++ {
    				pathbuf[w] = path[r]
    				w++
    			}
    		}
    	}
    	// A drive's root directory needs a trailing \
    	if w == len(`\\?\c:`) {
    		pathbuf[w] = '\\'
    		w++
    	}
    	return string(pathbuf[:w])
    }
    
    // Open - perm param is ignored, on windows file perms/NT acls
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            String path = remoteRepo.pathOf(artifact);
    
            File file = new File(remoteRepo.getBasedir(), path);
    
            assertFalse(file.exists(), "Remote artifact " + file + " should not be present.");
        }
    
        protected void assertLocalArtifactNotPresent(Artifact artifact) throws Exception {
            ArtifactRepository localRepo = localRepository();
    
            String path = localRepo.pathOf(artifact);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  3. cmd/bitrot.go

    			// Premature failure in reading the object, file is corrupt.
    			return errFileCorrupt
    		}
    		if !bytes.Equal(h.Sum(nil), want) {
    			return errFileCorrupt
    		}
    		return nil
    	}
    
    	h := algo.New()
    	hashBuf := make([]byte, h.Size())
    	left := wantSize
    
    	// Calculate the size of the bitrot file and compare
    	// it with the actual file size.
    	if left != bitrotShardFileSize(partSize, shardSize, algo) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  4. maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            if (realLocalRepo) {
                return delegate.pathOf(RepositoryUtils.toArtifact(artifact.setVersion(artifact.getBaseVersion())));
            }
            return delegate.pathOf(RepositoryUtils.toArtifact(artifact));
        }
    
        public String getPathForRemoteArtifact(Artifact artifact, RemoteRepository repository, String context) {
            return delegate.pathOf(RepositoryUtils.toArtifact(artifact));
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            wagon.addExpectedContent(repos.get(0).getLayout().pathOf(artifact), "expected");
            wagon.addExpectedContent(
                    repos.get(0).getLayout().pathOf(artifact) + ".md5", "cd26d9e10ce691cc69aa2b90dcebbdac");
            wagon.addExpectedContent(repos.get(1).getLayout().pathOf(artifact), "expected");
            wagon.addExpectedContent(
                    repos.get(1).getLayout().pathOf(artifact) + ".md5", "cd26d9e10ce691cc69aa2b90dcebbdac");
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java

            ArtifactRepository localRepository = localRepository();
    
            Artifact a = createArtifact("a", "0.0.1-SNAPSHOT");
            File file = new File(localRepository.getBasedir(), localRepository.pathOf(a));
            file.delete();
            a.setFile(file);
    
            File touchFile = updateCheckManager.getTouchfile(a);
            touchFile.delete();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/repository/UserLocalArtifactRepository.java

            return localRepository.pathOfLocalRepositoryMetadata(metadata, repository);
        }
    
        @Override
        public String pathOf(Artifact artifact) {
            return localRepository.pathOf(artifact);
        }
    
        @Override
        public boolean hasLocalMetadata() {
            return true;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

                            request.getArtifact().getVersion());
                    File pomFile = new File(
                            request.getLocalRepository().getBasedir(),
                            request.getLocalRepository().pathOf(pomArtifact));
    
                    try {
                        Model model = modelReader.read(pomFile, null).getDelegate();
    
                        dependencies = Dependency.dependencyToApiV3(model.getDependencies());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java

                        ArtifactRepositoryPolicy.CHECKSUM_POLICY_IGNORE);
            }
    
            this.releases = releases;
        }
    
        public String pathOf(Artifact artifact) {
            return layout.pathOf(artifact);
        }
    
        public String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata) {
            return layout.pathOfRemoteRepositoryMetadata(artifactMetadata);
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java

        }
    
        public String getId() {
            return userLocalArtifactRepository.getId();
        }
    
        @Override
        public String pathOf(Artifact artifact) {
            return userLocalArtifactRepository.pathOf(artifact);
        }
    
        @Override
        public String getBasedir() {
            return (userLocalArtifactRepository != null) ? userLocalArtifactRepository.getBasedir() : null;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Jun 15 14:24:56 GMT 2023
    - 5.4K bytes
    - Viewed (0)
Back to top