Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 619 for fullpath (0.16 sec)

  1. pkg/util/filesystem/util.go

    limitations under the License.
    */
    
    package filesystem
    
    import (
    	"path/filepath"
    )
    
    // IsPathClean will replace slashes to Separator (which is OS-specific).
    // This will make sure that all slashes are the same before comparing.
    func IsPathClean(path string) bool {
    	return filepath.ToSlash(filepath.Clean(path)) == filepath.ToSlash(path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 876 bytes
    - Viewed (0)
  2. pilot/pkg/security/authz/builder/testdata/http/extended-allow-path-out.yaml

                - orRules:
                    rules:
                    - urlPath:
                        path:
                          exact: /exact
                    - urlPath:
                        path:
                          prefix: /prefix/
                    - urlPath:
                        path:
                          suffix: /suffix
                    - urlPath:
                        path:
                          safeRegex:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/os/exec/dot_test.go

    		if runtime.GOOS == "windows" {
    			executable += ".exe"
    		}
    		if err := os.WriteFile(filepath.Join(dir, executable), []byte{1, 2, 3}, 0777); err != nil {
    			t.Fatal(err)
    		}
    		t.Setenv(pathVar, dir+string(filepath.ListSeparator)+origPath)
    
    		found, err := LookPath("execabs-test")
    		if wantErrDot {
    			wantFound := filepath.Join(".", executable)
    			if found != wantFound || !errors.Is(err, ErrDot) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/legacy_test.go

    			shouldError: true,
    		},
    		{
    			name:        "invalid suffix",
    			logSymLink:  filepath.Join(legacyContainerLogsDir, fmt.Sprintf("%s_%s_%s-%s", podName, podNamespace, containerName, containerID)[:251]+".invalidsuffix"),
    			expected:    "",
    			shouldError: true,
    		},
    		{
    			name:        "container ID too short",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 12:34:58 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/search.go

    					}
    				}
    				return nil
    			}
    
    			if !want {
    				return filepath.SkipDir
    			}
    			// Stop at module boundaries.
    			if (prune&pruneGoMod != 0) && pkgDir != root {
    				if fi, err := os.Stat(filepath.Join(pkgDir, "go.mod")); err == nil && !fi.IsDir() {
    					return filepath.SkipDir
    				}
    			}
    
    			if !have[name] {
    				have[name] = true
    				if isMatch(name) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. operator/cmd/mesh/profile-dump_test.go

    // limitations under the License.
    
    package mesh
    
    import (
    	"os"
    	"path/filepath"
    	"regexp"
    	"testing"
    
    	"github.com/kylelemons/godebug/diff"
    
    	"istio.io/istio/operator/pkg/util"
    )
    
    func TestProfileDump(t *testing.T) {
    	testDataDir := filepath.Join(operatorRootDir, "cmd/mesh/testdata/profile-dump")
    	tests := []struct {
    		desc       string
    		configPath string
    	}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 20 11:44:25 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/inst_test.go

    	var output []byte
    	var err error
    	filename := "ptrsort.go"
    	exename := "ptrsort"
    	outname := "ptrsort.out"
    	gotool := testenv.GoToolPath(t)
    	dest := filepath.Join(t.TempDir(), exename)
    	cmd := testenv.Command(t, gotool, "build", "-o", dest, filepath.Join("testdata", filename))
    	if output, err = cmd.CombinedOutput(); err != nil {
    		t.Fatalf("Failed: %v:\nOutput: %s\n", err, output)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. cluster/gce/gci/configure_helper_test.go

    	}
    
    	c.kubeHome = d
    	c.manifestSources = filepath.Join(c.kubeHome, "kube-manifests", "kubernetes", "gci-trusty")
    
    	currentPath, err := os.Getwd()
    	if err != nil {
    		c.t.Fatalf("Failed to get current directory: %v", err)
    	}
    	gceDir := filepath.Dir(currentPath)
    	c.manifestTemplateDir = filepath.Join(gceDir, "manifests")
    	c.manifestTemplate = filepath.Join(c.manifestTemplateDir, c.manifest)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 30 06:23:50 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  9. pkg/apis/policy/validation/validation.go

    		allErrs = append(allErrs, appsvalidation.IsNotMoreThan100Percent(*spec.MinAvailable, fldPath.Child("minAvailable"))...)
    	}
    
    	if spec.MaxUnavailable != nil {
    		allErrs = append(allErrs, appsvalidation.ValidatePositiveIntOrPercent(*spec.MaxUnavailable, fldPath.Child("maxUnavailable"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/lockedfile/lockedfile_test.go

    		// Q.3 locks file B.
    		b, err := lockedfile.Edit(filepath.Join(dir, "B"))
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer b.Close()
    
    		if err := os.WriteFile(filepath.Join(dir, "locked"), []byte("ok"), 0666); err != nil {
    			t.Fatal(err)
    		}
    
    		// Q.3 blocks on file A.
    		a, err := lockedfile.Edit(filepath.Join(dir, "A"))
    		// Q.3 unblocks and locks file A.
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top