Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for existence (0.06 sec)

  1. docs/smb3-features/04-directory-leasing-design.md

            if (parentCache != null && parentCache.isComplete()) {
                boolean exists = parentCache.hasChild(getName());
                log.debug("Using cached existence check for: {}", getPath());
                return exists;
            }
        }
        
        // Fall back to regular existence check
        return super.exists();
    }
    
    private void requestDirectoryLease() {
        if (!isDirectory() || !context.getConfig().isUseDirectoryLeasing()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

                            boolean exists = parentCache.hasChild(smbFile.getName());
                            log.debug("Using cached existence check for: {}", smbFile.getPath());
                            return exists;
                        }
                    }
                }
    
                // Fall back to regular existence check
                return smbFile.exists();
            } catch (CIFSException e) {
                throw SmbException.wrap(e);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/WinErrorTest.java

        }
    
        @Test
        @DisplayName("Arrays: non-null, same length, and exact contents")
        void arrays_are_well_formed_and_match() {
            // Validate arrays existence and alignment (edge and structure checks)
            assertNotNull(WinError.WINERR_CODES, "WINERR_CODES should not be null");
            assertNotNull(WinError.WINERR_MESSAGES, "WINERR_MESSAGES should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SmbResourceTest.java

                assertTrue(type >= 0, "Type should be non-negative");
            }
    
            @Test
            @DisplayName("exists should indicate resource existence")
            void testExists() throws CIFSException {
                // Given
                when(mockResource.exists()).thenReturn(true);
    
                // When
                boolean exists = mockResource.exists();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                return this.isExists;
            }
    
            // Fast path for already resolved existence with recent cache
            if (this.isExists && (currentTime - (this.attrExpiration - getContext().getConfig().getAttributeCacheTimeout())) < 5000) {
                log.trace("Using recent positive existence cache");
                return true;
            }
    
            this.attributes = ATTR_READONLY | ATTR_DIRECTORY;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  6. cmd/update.go

    	// binary's ModTime as release time:
    	return getModTime(os.Args[0])
    }
    
    // IsDocker - returns if the environment minio is running in docker or
    // not. The check is a simple file existence check.
    //
    // https://github.com/moby/moby/blob/master/daemon/initlayer/setup_unix.go
    // https://github.com/containers/podman/blob/master/libpod/runtime.go
    //
    //	"/.dockerenv":        "file",
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  7. cmd/server_test.go

    }
    
    // TestNonExistentBucket - Asserts response for HEAD on non-existent bucket.
    func (s *TestSuiteCommon) TestNonExistentBucket(c *check) {
    	// generate a random bucket name.
    	bucketName := getRandomBucketName()
    	// create request to HEAD on the bucket.
    	// HEAD on an bucket helps validate the existence of the bucket.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertFalse(file.exists(), "Non-existent file should not exist");
            assertThrows(SmbException.class, () -> file.length(), "Getting length of non-existent file should throw exception");
            assertThrows(SmbException.class, () -> file.getInputStream(), "Getting input stream of non-existent file should throw exception");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  9. cmd/object-handlers_test.go

    		},
    
    		// Test case - 8.
    		// Test case with non-existent source file.
    		// Case for the purpose of failing `api.ObjectAPI.GetObjectInfo`.
    		// Expecting the response status code to http.StatusNotFound (404).
    		{
    			bucketName:       bucketName,
    			uploadID:         uploadID,
    			copySourceHeader: url.QueryEscape(SlashSeparator + bucketName + SlashSeparator + "non-existent-object"),
    			accessKey:        credentials.AccessKey,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbResource.java

         * @throws CIFSException if an error occurs accessing the resource
         */
        long createTime() throws CIFSException;
    
        /**
         * Create a new file but fail if it already exists. The check for
         * existence of the file and it's creation are an atomic operation with
         * respect to other filesystem activities.
         *
         * @throws CIFSException if an error occurs creating the file
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
Back to top