- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for SmbFile (0.04 sec)
-
src/test/java/jcifs/http/NetworkExplorerTest.java
// Mock directory listing SmbFile file1 = mock(SmbFile.class); when(file1.getName()).thenReturn("document.pdf"); when(file1.isDirectory()).thenReturn(false); when(file1.length()).thenReturn(2048L); when(file1.lastModified()).thenReturn(System.currentTimeMillis()); SmbFile dir1 = mock(SmbFile.class); when(dir1.getName()).thenReturn("folder/");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
final PrintWriter out = resp.getWriter(); SmbFile[] dirents; SmbFile f; int i, j, len, maxLen, dirCount, fileCount, sort; String str, name, path, fmt; LinkedList<SmbFile> sorted; ListIterator<SmbFile> iter;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
SmbFile dir = new SmbFile("smb://server/share/testdir/", context); SmbFile testFile = new SmbFile("smb://server/share/testdir/newfile.txt", context); // Get initial listing (establishes cache) SmbFile[] initialFiles = dir.listFiles(); // Create new file testFile.createNewFile(); // Wait for change notification Thread.sleep(2000);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
@DisplayName("copyFile wraps and throws when ignoreCopyToException=false") void copyFile_throwsWhenIgnoreFalse() throws Exception { // Arrange SmbFile src = mock(SmbFile.class, RETURNS_DEEP_STUBS); SmbFile dest = mock(SmbFile.class); CIFSContext ctx = ctxWithIgnore(false); when(src.getContext()).thenReturn(ctx); // Force failure before any stream constructionRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java
responseData.setUrl(filePath); SmbFile file = null; final SmbAuthentication smbAuthentication = smbAuthenticationHolder.get(filePath); if (logger.isDebugEnabled()) { logger.debug("Creating SmbFile: {} - {}", filePath, smbAuthentication); } try { if (smbAuthentication == null) { file = new SmbFile(filePath, cifsContext); } else {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 22.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
*/ public SmbRandomAccessFile(final SmbFile file, final String mode) throws SmbException, MalformedURLException, UnknownHostException { this.file = file; if (mode.equals("r")) { this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDONLY; } else if (mode.equals("rw")) { this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDWR | SmbFile.O_APPEND;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
// Test get(String url) method String url = "smb://server/share/file.txt"; SmbResource mockSmbResource = mock(SmbFile.class); // Mocking SmbFile constructor is tricky, so we'll just verify the call to the delegate // and ensure no exception is thrown for a valid URL. // The actual SmbFile creation is outside the scope of this wrapper's direct responsibility.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
doReturn(mockFileHandle).when(smbFile).openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt()); doNothing().when(mockFileHandle).close(0L); // Act smbFile.createNewFile(); // Assert verify(smbFile).openUnshared(SmbFile.O_RDWR | SmbFile.O_CREAT | SmbFile.O_EXCL, SmbFile.O_RDWR, SmbFile.FILE_NO_SHARE, SmbFile.ATTR_NORMAL, 0);
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/SmbFileOutputStream.java
this(file, append, append ? SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_APPEND : SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_TRUNC); } /** * Creates an {@link java.io.OutputStream} for writing bytes to a file * on an SMB server addressed by the <code>SmbFile</code> parameter. See * {@link jcifs.smb1.smb1.SmbFile} for a detailed description and examples of * the smb URL syntax.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
this(new SmbFile(url, tc), mode, sharing, true); } /** * Instantiate a random access file from a {@link SmbFile} * * @param file the SmbFile to access * @param mode the access mode ("r" for read-only, "rw" for read-write) * @throws SmbException if an SMB error occurs */ public SmbRandomAccessFile(final SmbFile file, final String mode) throws SmbException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0)