Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for 0777 (0.06 sec)

  1. src/os/removeall_test.go

    		if err := Mkdir(filepath.Join(tempDir, dir), 0777); err != nil {
    			t.Fatal(err)
    		}
    	}
    	for _, dir := range readonly {
    		d := filepath.Join(tempDir, dir)
    		if err := Chmod(d, 0555); err != nil {
    			t.Fatal(err)
    		}
    
    		// Defer changing the mode back so that the deferred
    		// RemoveAll(tempDir) can succeed.
    		defer Chmod(d, 0777)
    	}
    
    	err := RemoveAll(tempDir)
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. pkg/apis/core/fuzzer/fuzzer.go

    			s.DefaultMode = &mode
    		},
    		func(cm *core.ConfigMapVolumeSource, c fuzz.Continue) {
    			c.FuzzNoCustom(cm) // fuzz self without calling this function again
    
    			if c.RandBool() {
    				opt := c.RandBool()
    				cm.Optional = &opt
    			}
    			// DefaultMode should always be set, it has a default
    			// value and it is expected to be between 0 and 0777
    			var mode int32
    			c.Fuzz(&mode)
    			mode &= 0777
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. src/cmd/covdata/tool_test.go

    	// Create subdirs.
    	subdir := filepath.Join(dir, prog+"dir"+tag)
    	if err := os.Mkdir(subdir, 0777); err != nil {
    		t.Fatalf("can't create outdir %s: %v", subdir, err)
    	}
    	depdir := filepath.Join(subdir, "dep")
    	if err := os.Mkdir(depdir, 0777); err != nil {
    		t.Fatalf("can't create outdir %s: %v", depdir, err)
    	}
    
    	// Emit program.
    	insrc := filepath.Join("testdata", prog+".go")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. cluster/images/etcd/migrate/integration_test.go

    	if err != nil {
    		return err
    	}
    
    	os.MkdirAll(filepath.Dir(certFileName), os.FileMode(0777))
    	err = os.WriteFile(certFileName, certPem, os.FileMode(0777))
    	if err != nil {
    		return err
    	}
    
    	os.MkdirAll(filepath.Dir(keyFileName), os.FileMode(0777))
    	err = os.WriteFile(keyFileName, keyPem, os.FileMode(0777))
    	if err != nil {
    		return err
    	}
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 28 07:33:23 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  5. pkg/volume/flexvolume/probe_test.go

    	assert.Equal(t, 2, len(watcher.watches)) // 2 from initial setup
    
    	// test add testDriverName
    	testDriverName := "testDriverName"
    	testDriverPath := filepath.Join(pluginDir, testDriverName)
    	fs.MkdirAll(testDriverPath, 0777)
    	watcher.TriggerEvent(fsnotify.Create, testDriverPath)
    	// Assert
    	assert.Equal(t, 3, len(watcher.watches)) // 2 from initial setup, 1 from new watch.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 28 11:14:00 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

        }
    
        @Requires(UnitTestPreconditions.FilePermissions)
        def "fileMode can be modified in copy task"() {
            given:
    
            file("reference.txt") << 'test file"'
            file("reference.txt").mode = 0777
            and:
            buildFile << """
                 task copy(type: Copy) {
                     from "reference.txt"
                     into ("build/tmp")
                     fileMode = $mode
                 }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. src/cmd/cover/cover_test.go

    }
    
    var tdmu sync.Mutex
    var tdcount int
    
    func tempDir(t *testing.T) string {
    	tdmu.Lock()
    	dir := filepath.Join(testTempDir, fmt.Sprintf("%03d", tdcount))
    	tdcount++
    	if err := os.Mkdir(dir, 0777); err != nil {
    		t.Fatal(err)
    	}
    	defer tdmu.Unlock()
    	return dir
    }
    
    // TestCoverWithToolExec runs a set of subtests that all make use of a
    // "-toolexec" wrapper program to invoke the cover test executable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  8. src/cmd/go/script_test.go

    	must(os.MkdirAll(telemetryDir, 0777))
    	must(s.Setenv("TEST_TELEMETRY_DIR", filepath.Join(work, "telemetry")))
    
    	must(os.MkdirAll(filepath.Join(work, "tmp"), 0777))
    	must(s.Setenv(tempEnvName(), filepath.Join(work, "tmp")))
    
    	gopath := filepath.Join(work, "gopath")
    	must(s.Setenv("GOPATH", gopath))
    	gopathSrc := filepath.Join(gopath, "src")
    	must(os.MkdirAll(gopathSrc, 0777))
    	must(s.Chdir(gopathSrc))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/cmd/dist/util.go

    			return
    		}
    	}
    	mode := os.FileMode(0666)
    	if flag&writeExec != 0 {
    		mode = 0777
    	}
    	xremove(file) // in case of symlink tricks by misc/reboot test
    	err := os.WriteFile(file, new, mode)
    	if err != nil {
    		fatalf("%v", err)
    	}
    }
    
    // xmkdir creates the directory p.
    func xmkdir(p string) {
    	err := os.Mkdir(p, 0777)
    	if err != nil {
    		fatalf("%v", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modcmd/vendor.go

    						os.Stderr.WriteString(line)
    					}
    				}
    			}
    		}
    	}
    
    	if buf.Len() == 0 {
    		fmt.Fprintf(os.Stderr, "go: no dependencies to vendor\n")
    		return
    	}
    
    	if err := os.MkdirAll(vdir, 0777); err != nil {
    		base.Fatal(err)
    	}
    
    	if err := os.WriteFile(filepath.Join(vdir, "modules.txt"), buf.Bytes(), 0666); err != nil {
    		base.Fatal(err)
    	}
    }
    
    func moduleLine(m, r module.Version) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top