Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toSlash (0.16 sec)

  1. cmd/admin-handlers.go

    		return
    	}
    	file := r.Form.Get("file")
    	if len(file) == 0 {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    		return
    	}
    
    	file = filepath.ToSlash(file)
    	// Reject attempts to traverse parent or absolute paths.
    	if hasBadPathComponent(volume) || hasBadPathComponent(file) {
    		writeErrorResponse(r.Context(), w, errorCodes.ToAPIErr(ErrInvalidResourceName), r.URL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    				}
    			}
    			return stat, errPathNotFound
    		}
    		name, err := filepath.Rel(volumeDir, filePath)
    		if err != nil {
    			name = filePath
    		}
    		stat = append(stat, StatInfo{
    			Name:    filepath.ToSlash(name),
    			Size:    st.Size(),
    			Dir:     st.IsDir(),
    			Mode:    uint32(st.Mode()),
    			ModTime: st.ModTime(),
    		})
    	}
    	return stat, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top