- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for isHidden (0.03 sec)
-
src/test/java/jcifs/SmbResourceTest.java
when(mockResource.isDirectory()).thenReturn(false); when(mockResource.isHidden()).thenReturn(false); // When boolean isFile = mockResource.isFile(); boolean isDirectory = mockResource.isDirectory(); boolean isHidden = mockResource.isHidden(); // Then assertTrue(isFile, "Should be a file");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
} @Test void testIsHidden() throws SmbException { // Arrange doReturn(true).when(smbFile).isHidden(); // Act & Assert assertTrue(smbFile.isHidden()); } @Test void testGetName() { // Act & Assert assertEquals("file.txt", smbFile.getName()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbShareInfo.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java
*/ @Override public int getFileIndex() { return 0; } @Override public int getType() { /* * 0x80000000 means hidden but SmbFile.isHidden() checks for $ at end */ switch (this.type & 0xFFFF) { case 1: return SmbConstants.TYPE_PRINTER; case 3: return SmbConstants.TYPE_NAMED_PIPE; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
} @Test public void testIsHiddenForDollarShare() throws Exception { SmbFile hiddenShare = new SmbFile("smb1://server/C$/"); assertTrue(hiddenShare.isHidden()); } } // Helper method to create a mock SmbFile for more advanced tests if needed private SmbFile createMockSmbFile(String url, NtlmPasswordAuthentication auth) throws MalformedURLException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
* <code>smb1://workgroup/</code> lists servers, the <code>smb1://</code> * URL lists all available workgroups on a netbios LAN. Again, * in this context many methods are not valid and return default * values(e.g. <code>isHidden</code> will always return false). * </td></tr> * * <tr><td ><code>smb1://angus.foo.net/d/jcifs/smb1/pipes.doc</code></td><td> * The server name may also be a DNS name as it is in this example. See
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
* * @return <code>true</code> if the <code>SmbResource</code> is marked as being hidden * @throws CIFSException if an error occurs accessing the resource */ boolean isHidden() throws CIFSException; /** * Tests to see if the file this <code>SmbResource</code> represents is not a directory. * * @return <code>true</code> if this <code>SmbResource</code> is not a directory
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
src/main/java/jcifs/smb/SmbFile.java
if (this.fileLocator.isRootOrShare()) { return false; } exists(); return (this.attributes & ATTR_DIRECTORY) == 0; } @Override public boolean isHidden() throws SmbException { if (this.fileLocator.getShare() == null) { return false; } if (this.fileLocator.isRootOrShare()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)