- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for isRoot (0.04 sec)
-
src/test/java/jcifs/SmbResourceLocatorTest.java
return 0; } @Override public boolean isWorkgroup() { return false; } @Override public boolean isRoot() { return "/".equals(path); } } @Nested @DisplayName("Happy path – well-formed SMB URL") class HappyPath { @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
assertFalse(base.overlaps(other)); } @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());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
boolean hasNextAddress() { return this.addressIndex < this.addresses.length; } /** * {@inheritDoc} * * @see jcifs.SmbResourceLocator#isRoot() */ @Override public boolean isRoot() { // length == 0 should not happen return getShare() == null && getUNCPath().length() <= 1; } boolean isRootOrShare() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 23.6K bytes - Viewed (0) -
src/main/java/jcifs/SmbResourceLocator.java
/** * Determines whether this resource represents the root of the SMB hierarchy. * * @return whether this is a root resource */ boolean isRoot();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
return new NetServerFileEntryAdapterIterator(parent, new NetServerEnumIterator(parent, th, wildcard, searchAttributes, fnf), ff); } } else if (locator.isRoot()) { return doShareEnum(parent, wildcard, searchAttributes, fnf, ff); } try (SmbTreeHandleImpl th = parent.ensureTreeConnected()) { if (th.isSMB2()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
final int t = getType(); if (t == TYPE_SHARE) { this.size = fetchAllocationInfo(th).getCapacity(); } else if (!this.fileLocator.isRoot() && t != TYPE_NAMED_PIPE) { queryPath(th, this.fileLocator.getUNCPath(), FileInformation.FILE_STANDARD_INFO); } else { this.size = 0L; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
docs/en/docs/alternatives.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 23.6K bytes - Viewed (0) -
docs/en/docs/release-notes.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Sep 05 12:48:45 UTC 2025 - 544.1K bytes - Viewed (0)