- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 69 for Folders (2.15 sec)
-
src/test/java/jcifs/util/InputValidatorTest.java
void testPathTraversal(String path) { assertThrows(IllegalArgumentException.class, () -> InputValidator.validateSmbPath(path)); } @ParameterizedTest @DisplayName("Test valid SMB paths")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/util/StringUtil.java
package jcifs.internal.util; /** * Utility class providing string manipulation methods for the jCIFS library. * Contains helper methods for string operations, including backported JDK functionality * for compatibility with older Java versions. */ public final class StringUtil { /** * */ private StringUtil() { } /** * Implementation of {@link java.lang.String#join} backported for JDK7.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
when(file1.length()).thenReturn(2048L); when(file1.lastModified()).thenReturn(System.currentTimeMillis()); SmbFile dir1 = mock(SmbFile.class); when(dir1.getName()).thenReturn("folder/"); when(dir1.isDirectory()).thenReturn(true); when(smbFile.listFiles()).thenReturn(new SmbFile[] { file1, dir1 }); when(smbFile.getLocator()).thenReturn(locator);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/storage/admin_storage.jsp
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 13 05:54:52 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
*/ @Test @DisplayName("Test writeString handles path separators correctly") public void testWriteStringWithPathSeparators() { // Given String oldFileName = "folder\\oldFile.txt"; String newFileName = "folder\\newFile.txt"; byte[] dst = new byte[200]; smbComRename = new SmbComRename(config, oldFileName, newFileName); int dstIndex = 0; // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
validator.validatePath("\\share\\folder\\file.txt"); validator.validatePath("C:\\Windows\\System32"); validator.validatePath(null); // Null should be allowed validator.validatePath(""); // Empty should be allowed } @Test public void testPathTooLong() throws Exception { String longPath = "\\share" + "\\folder".repeat(5000); assertThrows(SmbException.class, () -> {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
Thread.sleep(10); // Small delay to ensure different timestamps Smb2LeaseKey key2 = leaseManager.requestLease(path2, Smb2LeaseState.SMB2_LEASE_WRITE_CACHING); // Clean up leases older than 5ms int cleaned = leaseManager.cleanupExpiredLeases(5); // At least the first lease should be cleaned assertTrue(cleaned >= 1); // Check if old lease was removed
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/ACE.java
* * @return the access mask */ int getAccessMask(); /** * Returns the 'Apply To' text for inheritance of ACEs on * directories such as 'This folder, subfolder and files'. For * files the text is always 'This object only'. * * @return descriptive text for the ACE scope */ String getApplyToText(); /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
} @Test @DisplayName("Test path with special characters") void testPathWithSpecialCharacters() { String specialPath = "folder\\file with spaces.txt"; request = new Smb2CreateRequest(mockConfig, specialPath); assertEquals("\\folder\\file with spaces.txt", request.getPath()); String unicodePath = "文件夹\\文件.txt"; request = new Smb2CreateRequest(mockConfig, unicodePath);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/netdfs.java
* @param level the information level * @param prefmaxlen the preferred maximum length * @param info the enumeration structure * @param totalentries holder for total entries count */ public NetrDfsEnumEx(final String dfs_name, final int level, final int prefmaxlen, final DfsEnumStruct info, final NdrLong totalentries) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 21.8K bytes - Viewed (0)