- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 416 for Trailing (0.04 sec)
-
cmd/iam-object-store.go
// parent directory retains the trailing slash. func splitPath(s string, secondIndex bool) (string, string) { var i int if secondIndex { i = findSecondIndex(s, "/") } else { i = strings.Index(s, "/") } if i == -1 { return s, "" } // Include the trailing slash in the parent directory. return s[:i+1], s[i+1:] }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 26.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Dfs.java
* 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(); while (ki > 1 && key.charAt(ki - 1) == '\\') { ki--; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
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); } return path; } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
// Test duplicate slash removal assertEquals("\\share\\folder", validator.validatePath("\\\\share\\\\folder")); // Test trailing slash removal assertEquals("\\share\\folder", validator.validatePath("\\share\\folder\\")); } @Test public void testDirectoryTraversal() throws Exception {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
src/archive/tar/common.go
// that they are interested in preserving. type Header struct { // Typeflag is the type of header entry. // The zero value is automatically promoted to either TypeReg or TypeDir // depending on the presence of a trailing slash in Name. Typeflag byte Name string // Name of file entry Linkname string // Target name of link (valid for TypeLink or TypeSymlink) Size int64 // Logical file size in bytesRegistered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Oct 07 19:46:36 UTC 2025 - 24.5K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
* <code>SmbResource</code> refers to a workgroup, server, share, or directory, * the name will include a trailing slash '/' so that composing new * <code>SmbResource</code>s will maintain the trailing slash requirement. * * @return The last component of the URL associated with this SMB * resource or <code>smb://</code> if the resource is <code>smb://</code>
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
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 stringRegistered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue May 28 21:41:09 UTC 2024 - 12.1K bytes - Viewed (0) -
cmd/metacache-stream.go
// // 1 Integer, metacacheStreamVersion of the writer. // This can be used for managing breaking changes. // // For each element: // 1. Bool. If false at end of stream. // 2. String. Name of object. Directories contains a trailing slash. // 3. Binary. Blob of metadata. Length 0 on directories. // ... Next element. // // Streams can be assumed to be sorted in ascending order.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed May 07 15:37:12 UTC 2025 - 19.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
void testGetNameVariants() { // file name from deep path SmbResourceLocatorImpl a = locator("smb://server/share/dir/file.txt"); assertEquals("file.txt", a.getName()); // share name with trailing slash when only share present SmbResourceLocatorImpl b = locator("smb://server/share/"); assertEquals("share/", b.getName()); // host when no path/share
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameTest.java
assertTrue(length >= 34); assertEquals(0x20, dst[0]); } @Test void readWireFormat_withTrailingSpaces_shouldTrimCorrectly() { // Prepare encoded data for "TEST " (with trailing spaces) byte[] src = new byte[100]; src[0] = 0x20; // Encode "TEST" correctly // T=0x54: upper nibble 0x5->F(0x46), lower nibble 0x4->E(0x45) src[1] = 'F';
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0)