Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for isfile (0.26 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

                // When
                boolean isFile = mockResource.isFile();
                boolean isDirectory = mockResource.isDirectory();
                boolean isHidden = mockResource.isHidden();
    
                // Then
                assertTrue(isFile, "Should be a file");
                assertFalse(isDirectory, "Should not be a directory");
                assertFalse(isHidden, "Should not be hidden");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. cmd/common-main.go

    		return nil, nil, false, err
    	}
    	for _, file := range files {
    		// Ignore all
    		// - regular files
    		// - "CAs" directory
    		// - any directory which starts with ".."
    		if file.Mode().IsRegular() || file.Name() == "CAs" || strings.HasPrefix(file.Name(), "..") {
    			continue
    		}
    		if file.Mode()&os.ModeSymlink == os.ModeSymlink {
    			file, err = Stat(filepath.Join(root.Name(), file.Name()))
    			if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (3)
  3. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

            try {
                final File outputFile = new File(baseDir, entity.getPath());
                final File noImageFile = new File(outputFile.getAbsolutePath() + NOIMAGE_FILE_SUFFIX);
                if (!noImageFile.isFile() || systemHelper.getCurrentTimeAsLong() - noImageFile.lastModified() > noImageExpired) {
                    if (noImageFile.isFile() && !noImageFile.delete()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileTest.java

                // Arrange & Act
                SmbFile file = new SmbFile(url, mockCifsContext);
    
                // Assert
                assertNotNull(file);
                assertEquals(mockCifsContext, file.getContext());
            }
    
            @Test
            void testConstructorWithStringURL() throws MalformedURLException {
                // Arrange & Act
                SmbFile file = new SmbFile("smb://localhost/share/test.txt", mockCifsContext);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            SmbFile file = new SmbFile(baseUrl + "shared/zerobyte_" + timestamp + ".txt", context);
    
            // Create empty file
            file.createNewFile();
    
            // Verify properties
            assertTrue(file.exists(), "Empty file should exist");
            assertEquals(0, file.length(), "Empty file should have zero length");
            assertTrue(file.isFile(), "Should be identified as file");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            smbFile = mock(SmbFile.class);
            smbFile.tree = smbTree;
            smbFile.fid = 1;
            smbFile.tree_num = 1;
    
            when(smbFile.isFile()).thenReturn(true);
            when(smbFile.getUncPath()).thenReturn("\\\\server\\share\\file.txt");
            when(smbFile.isOpen()).thenReturn(true);
    
            // Mock the open method to do nothing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

                        logger.debug("generator path: {}", s);
                    }
                    return s;
                }).allMatch(s -> {
                    final boolean found = new File(s).isFile();
                    if (found && logger.isDebugEnabled()) {
                        logger.debug("{} is found.", s);
                    }
                    return found;
                });
            } else {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

        /**
         * Processes access control entries (ACEs) for the given SMB file and adds them to the response data.
         *
         * @param responseData the response data to update
         * @param file the SMB file to process
         */
        protected void processAccessControlEntries(final ResponseData responseData, final SmbFile file) {
            try {
                final ACE[] aces = file.getSecurity(resolveSids);
                if (aces != null) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  9. cmd/utils.go

    		// Upon error just return Go-syntax representation of the value
    		return fmt.Sprintf("%#v", req)
    	}
    
    	// Formatted string.
    	return strings.TrimSpace(buffer.String())
    }
    
    // isFile - returns whether given path is a file or not.
    func isFile(path string) bool {
    	if fi, err := os.Stat(path); err == nil {
    		return fi.Mode().IsRegular()
    	}
    
    	return false
    }
    
    // UTCNow - returns current UTC time.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

        /**
         * Processes access control entries (ACEs) for the given SMB1 file and adds them to the response data.
         *
         * @param responseData the response data to update
         * @param file the SMB1 file to process
         */
        protected void processAccessControlEntries(final ResponseData responseData, final SmbFile file) {
            try {
                final ACE[] aces = file.getSecurity(resolveSids);
                if (aces != null) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 23K bytes
    - Viewed (0)
Back to top