Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 112 for setSize (0.13 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            FileUtils.deleteDirectory(testData);
            testData.mkdirs();
    
            Artifact artifact = artifactFactory.createProjectArtifact("test", "test", "1.0");
            artifact.setFile(new File(testData, "test-1.0.pom"));
            assertFalse(artifact.getFile().exists());
            return artifact;
        }
    
        private Artifact createTestArtifact(String directory, String type) throws IOException {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/SmbBasicFileInfo.java

         *
         * @return file last access time
         */
        long getLastAccessTime();
    
        /**
         * Gets the file size in bytes.
         *
         * @return file size
         */
        long getSize();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

        /**
         * Converts an SmbException to an IOException
         *
         * @param se the SmbException to convert
         * @return an IOException wrapping the SmbException
         */
        protected static IOException seToIoe(final SmbException se) {
            IOException ioe = se;
            Throwable root = se.getCause();
            if (root instanceof TransportException) {
                ioe = (TransportException) root;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

            void testGetEndOfFile() {
                assertEquals(0, response.getEndOfFile());
            }
    
            @Test
            @DisplayName("getSize should return same as getEndOfFile")
            void testGetSize() {
                assertEquals(response.getEndOfFile(), response.getSize());
            }
    
            @Test
            @DisplayName("getFileAttributes should return initial value of 0")
            void testGetFileAttributes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  5. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

            setBaseVersionInternal(version);
            versionRange = null;
        }
    
        @Override
        public String getType() {
            return type;
        }
    
        @Override
        public void setFile(File file) {
            this.file = file;
        }
    
        @Override
        public File getFile() {
            return file;
        }
    
        @Override
        public ArtifactRepository getRepository() {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  6. docs/smb3-features/04-directory-leasing-design.md

            // Create SmbFile with cached attributes
            SmbFile file = new SmbFile(filePath, context);
            file.setCachedAttributes(new SmbFileAttributes() {
                @Override
                public long getSize() { return fileInfo.getSize(); }
                @Override
                public long getLastWriteTime() { return fileInfo.getLastModified(); }
                @Override
                public boolean isDirectory() { return fileInfo.isDirectory(); }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java

        @Test
        public void testGetSendRegion() throws Exception {
            RdmaMemoryRegion region = bufferManager.getSendRegion(1024);
            assertNotNull(region, "Send region should not be null");
            assertTrue(region.getSize() >= 1024, "Region should be at least requested size");
            assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ), "Should have local read access");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/UserLocalArtifactRepository.java

            // We need to set the file here or the resolver will fail with an NPE, not fully equipped to deal
            // with multiple local repository implementations yet.
            artifact.setFile(artifactFile);
    
            return artifact;
        }
    
        @Override
        public String getId() {
            return localRepository.getId();
        }
    
        @Override
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            File file = new File(getRepository().getBasedir(), path);
    
            LocalArtifactResult result = new LocalArtifactResult(request);
            if (file.isFile()) {
                result.setFile(file);
                result.setAvailable(true);
            }
    
            return result;
        }
    
        @Override
        public LocalMetadataResult find(RepositorySystemSession session, LocalMetadataRequest request) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. cmd/data-scanner.go

    	updatePath, closeDisk := globalScannerMetrics.currentPathUpdater(basePath, cache.Info.Name)
    	defer closeDisk()
    
    	s := folderScanner{
    		root:                  basePath,
    		getSize:               getSize,
    		oldCache:              cache,
    		newCache:              dataUsageCache{Info: cache.Info},
    		updateCache:           dataUsageCache{Info: cache.Info},
    		dataUsageScannerDebug: false,
    		healObjectSelect:      0,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.5K bytes
    - Viewed (0)
Back to top