- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 241 for slashes (0.04 sec)
-
src/main/java/jcifs/util/PathValidator.java
* Normalize a path */ private String normalizePath(String path) { // Replace forward slashes with backslashes for consistency String normalized = path.replace('/', '\\'); // Remove duplicate slashes normalized = normalized.replaceAll("\\\\+", "\\\\"); // Remove trailing slash unless it's the root if (normalized.length() > 1 && normalized.endsWith("\\")) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
*/ public static String normalizeSmbPath(String path) { validateSmbPath(path); // Normalize slashes path = path.replace('/', '\\'); // Remove redundant slashes path = path.replaceAll("\\\\+", "\\\\"); // Remove trailing slash unless it's root if (path.length() > 1 && path.endsWith("\\")) { path = path.substring(0, path.length() - 1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/archive/zip/struct.go
type FileHeader struct { // Name is the name of the file. // // It must be a relative path, not start with a drive letter (such as "C:"), // and must use forward slashes instead of back slashes. A trailing slash // indicates that this file is a directory and should have no data. Name string // Comment is any arbitrary user-defined string shorter than 64KiB. Comment string
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue May 28 21:41:09 UTC 2024 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
void testVariousFilenameFormats() { // Test UNC path assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\share")); // Test forward slashes assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "//server/share")); // Test with spaces assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\my share\\file.txt"));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Dfs.java
/* Samba has a tendency to return referral paths and pathConsumed values * in such a way that there can be a slash at the end of the path. This * causes problems matching keys in resolve() where an extra slash causes * a mismatch. This strips trailing slashes from all keys to eliminate * this problem. */ int ki = key.length();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
* * <ul> * <li>empty string becomes . * <li>. stays as . * <li>fold out ./ * <li>fold out ../ when possible * <li>collapse multiple slashes * <li>delete trailing slashes (unless the path is just "/") * </ul> * * <p>These heuristics do not always match the behavior of the filesystem. In particular, consider
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
guava/src/com/google/common/io/Files.java
* * <ul> * <li>empty string becomes . * <li>. stays as . * <li>fold out ./ * <li>fold out ../ when possible * <li>collapse multiple slashes * <li>delete trailing slashes (unless the path is just "/") * </ul> * * <p>These heuristics do not always match the behavior of the filesystem. In particular, consider
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
cmd/generic-handlers.go
// such as ".." and "." func hasBadPathComponent(path string) bool { n := len(path) if n > 32<<10 { // At 32K we are beyond reasonable. return true } i := 0 // Skip leading slashes (for sake of Windows \ is included as well) for i < n && (path[i] == SlashSeparatorChar || path[i] == '\\') { i++ } for i < n { // Find the next segment start := i
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 20.7K bytes - Viewed (1) -
src/archive/zip/writer.go
// The file contents will be compressed using the [Deflate] method. // The name must be a relative path: it must not start with a drive // letter (e.g. C:) or leading slash, and only forward slashes are // allowed. To create a directory instead of a file, add a trailing // slash to the name. Duplicate names will not overwrite previous entries // and are appended to the zip file. // The file's contents must be written to the [io.Writer] before the next
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 19.4K bytes - Viewed (0) -
cmd/metacache-set.go
return case o.Prefix == o.BaseDir: // No additional prefix return } // Remove basedir. o.FilterPrefix = strings.TrimPrefix(o.Prefix, o.BaseDir) // Remove leading and trailing slashes. o.FilterPrefix = strings.Trim(o.FilterPrefix, slashSeparator) if strings.Contains(o.FilterPrefix, slashSeparator) { // Sanity check, should not happen. o.FilterPrefix = "" } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 30.7K bytes - Viewed (0)