Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isRootOrShare (0.29 sec)

  1. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

        }
    
        @Test
        @DisplayName("isRoot and isRootOrShare reflect path state")
        void testIsRootAndShare() {
            assertTrue(locator("smb://server/").isRoot());
            assertFalse(locator("smb://server/share/").isRoot());
            assertTrue(locator("smb://server/").isRootOrShare());
            assertTrue(locator("smb://server/share/").isRootOrShare());
            assertFalse(locator("smb://server/share/path").isRootOrShare());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFile.java

            if (this.fileLocator.isRootOrShare()) {
                return true;
            }
            if (!exists()) {
                return false;
            }
            return (this.attributes & ATTR_DIRECTORY) == ATTR_DIRECTORY;
        }
    
        @Override
        public boolean isFile() throws SmbException {
            if (this.fileLocator.isRootOrShare()) {
                return false;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

         */
        @Override
        public boolean isRoot() {
            // length == 0 should not happen
            return getShare() == null && getUNCPath().length() <= 1;
        }
    
        boolean isRootOrShare() {
            // length == 0 should not happen
            return getUNCPath().length() <= 1;
        }
    
        /**
         * @throws MalformedURLException
         *
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top