- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for Backslash (0.06 seconds)
-
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
request.setPath("test\\file.txt"); assertEquals("\\test\\file.txt", request.getPath()); // Test path with leading backslash (should be stripped) request.setPath("\\test\\file.txt"); assertEquals("\\test\\file.txt", request.getPath()); // Test path with trailing backslash (should be stripped) request.setPath("test\\directory\\"); assertEquals("\\test\\directory", request.getPath());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 18.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
assertEquals("\\test\\path\\", trans2FindFirst2.getPath()); } @Test @DisplayName("Test constructor with path ending in backslash") void testConstructorWithPathEndingInBackslash() { // Test path already ending with backslash trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test\\path\\", "*.doc", 0x16, 20, 2048); assertEquals("\\test\\path\\", trans2FindFirst2.getPath());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
verify(tree, times(1)).acquire(); verify(tree, times(1)).release(); // closed after failure } @Test @DisplayName("open(): invalid UNC without trailing backslash throws SmbException") void invalidUncThrows() throws Exception { // Override the default setup for this specific test when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir"); // missing trailing \\
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/QueryStringBuilder.java
} /** * Escapes specific characters in a query string. * Replaces each specified character with its escaped version (prefixed with backslash). * * @param q the query string to escape * @param values the characters to escape * @return the escaped query string */Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 12.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java
return out.toString(); } /** * <p>Escapes the characters in a <code>String</code> using Java String rules.</p> * * <p>Deals correctly with quotes and control-chars (tab, backslash, cr, ff, etc.) </p> * * <p>So a tab becomes the characters <code>'\\'</code> and * <code>'t'</code>.</p> * * <p>The only difference between Java strings and JavaScript stringsCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Oct 16 09:03:48 GMT 2025 - 38.5K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java
return out.toString(); } /** * <p>Escapes the characters in a <code>String</code> using Java String rules.</p> * * <p>Deals correctly with quotes and control-chars (tab, backslash, cr, ff, etc.) </p> * * <p>So a tab becomes the characters <code>'\\'</code> and * <code>'t'</code>.</p> * * <p>The only difference between Java strings and JavaScript stringsCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 38.4K bytes - Click Count (0) -
src/test/java/jcifs/util/PathValidatorTest.java
assertEquals("\\server\\share", normalizedPath); // To properly test UNC rejection, we would need to fix the normalization logic // to preserve the leading double backslash for UNC paths } @Test public void testInvalidUncPath() throws Exception { // Due to normalization removing duplicate backslashes, true UNC validation doesn't work
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.6K bytes - Click Count (0) -
apache-maven/src/assembly/maven/bin/mvn.cmd
) if defined MAVEN_DEBUG_SCRIPT ( echo [DEBUG] Final JVM_CONFIG_MAVEN_OPTS: %JVM_CONFIG_MAVEN_OPTS% ) :endReadJvmConfig @REM do not let MAVEN_PROJECTBASEDIR end with a single backslash which would escape the double quote. This happens when .mvn at drive root. if "_%MAVEN_PROJECTBASEDIR:~-1%"=="_\" set "MAVEN_PROJECTBASEDIR=%MAVEN_PROJECTBASEDIR%\"
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Dec 10 16:40:06 GMT 2025 - 10.7K bytes - Click Count (3) -
src/main/java/jcifs/smb/SmbTreeImpl.java
/* * When DFS is in action all request paths are * full UNC paths minus the first backslash like * \server\share\path\to\file * as opposed to normally * \path\to\file */Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
@Override public void setPath(String path) { if (path.length() > 0 && path.charAt(0) == '\\') { path = path.substring(1); } // win8.1 returns ACCESS_DENIED if the trailing backslash is included if (path.length() > 1 && path.charAt(path.length() - 1) == '\\') { path = path.substring(0, path.length() - 1); } this.name = path; } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 22.9K bytes - Click Count (0)