Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for 0o377 (0.04 sec)

  1. src/html/template/exec_test.go

    	{"binary _", "{{print 0b_1_0_1}}", "5", tVal, true},
    	{"BINARY", "{{print 0B101}}", "5", tVal, true},
    	{"octal0", "{{print 0377}}", "255", tVal, true},
    	{"octal", "{{print 0o377}}", "255", tVal, true},
    	{"octal _", "{{print 0o_3_7_7}}", "255", tVal, true},
    	{"OCTAL", "{{print 0O377}}", "255", tVal, true},
    	{"hex", "{{print 0x123}}", "291", tVal, true},
    	{"hex _", "{{print 0x1_23}}", "291", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. src/text/template/exec_test.go

    	{"binary _", "{{print 0b_1_0_1}}", "5", tVal, true},
    	{"BINARY", "{{print 0B101}}", "5", tVal, true},
    	{"octal0", "{{print 0377}}", "255", tVal, true},
    	{"octal", "{{print 0o377}}", "255", tVal, true},
    	{"octal _", "{{print 0o_3_7_7}}", "255", tVal, true},
    	{"OCTAL", "{{print 0O377}}", "255", tVal, true},
    	{"hex", "{{print 0x123}}", "291", tVal, true},
    	{"hex _", "{{print 0x1_23}}", "291", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  3. cmd/os-reliable_test.go

    		t.Fatal("Unexpected error", err)
    	}
    
    	if err = mkdirAll(pathJoin(path, "success-vol", "success-object"), 0o777, ""); err != nil {
    		t.Fatal("Unexpected error", err)
    	}
    }
    
    // Tests - renameAll()
    func TestOSRenameAll(t *testing.T) {
    	// create xlStorage test setup
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 13 15:14:36 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. pkg/filewatcher/filewatcher_test.go

    //
    // <watchDir>/data1/test.conf
    func newSymlinkedWatchFile(t *testing.T) (string, string) {
    	g := NewGomegaWithT(t)
    
    	watchDir := t.TempDir()
    
    	dataDir1 := path.Join(watchDir, "data1")
    	err := os.Mkdir(dataDir1, 0o777)
    	g.Expect(err).NotTo(HaveOccurred())
    
    	realTestFile := path.Join(dataDir1, "test.conf")
    	t.Logf("Real test file location: %s\n", realTestFile)
    	err = os.WriteFile(realTestFile, []byte("foo: bar\n"), 0o640)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. src/os/types.go

    	// Mask for the type bits. For regular files, none will be set.
    	ModeType = fs.ModeType
    
    	ModePerm = fs.ModePerm // Unix permission bits, 0o777
    )
    
    func (fs *fileStat) Name() string { return fs.name }
    func (fs *fileStat) IsDir() bool  { return fs.Mode().IsDir() }
    
    // SameFile reports whether fi1 and fi2 describe the same file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. cmd/os-reliable.go

    // syscall.ENOENT (parent does not exist).
    func reliableRename(srcFilePath, dstFilePath, baseDir string) (err error) {
    	if err = reliableMkdirAll(path.Dir(dstFilePath), 0o777, baseDir); err != nil {
    		return err
    	}
    
    	i := 0
    	for {
    		// After a successful parent directory create attempt a renameAll.
    		if err = Rename(srcFilePath, dstFilePath); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. cmd/xl-storage_test.go

    	dir2 := slashpath.Join(tmp, "file")
    	err := os.WriteFile(dir2, []byte("hello"), 0o777)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if isDirEmpty(dir2, true) {
    		t.Error("expected false for a file, got true")
    	}
    
    	// Should give true for a real empty directory.
    	dir3 := slashpath.Join(tmp, "empty")
    	err = os.Mkdir(dir3, 0o777)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if !isDirEmpty(dir3, true) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  8. src/os/exec/lp_windows_test.go

    func installExe(t *testing.T, dstPath string) {
    	src, err := os.Open(exePath(t))
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer src.Close()
    
    	dst, err := os.OpenFile(dstPath, os.O_CREATE|os.O_EXCL|os.O_WRONLY, 0o777)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer func() {
    		if err := dst.Close(); err != nil {
    			t.Fatal(err)
    		}
    	}()
    
    	_, err = io.Copy(dst, src)
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    	uuid := mustGetUUID()
    	filePath := pathJoin(s.drivePath, minioMetaTmpDeletedBucket, ".writable-check-"+uuid+".tmp")
    
    	// Create top level directories if they don't exist.
    	// with mode 0o777 mkdir honors system umask.
    	mkdirAll(pathutil.Dir(filePath), 0o777, s.drivePath) // don't need to fail here
    
    	w, err := s.openFileDirect(filePath, os.O_CREATE|os.O_WRONLY|os.O_EXCL)
    	if err != nil {
    		return err
    	}
    	_, err = w.Write(alignedBuf)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  10. cmd/prepare-storage.go

    			pathJoin(diskPath, minioMetaTmpBucket),
    			tmpOld,
    			osErrToFileErr(err)))
    	}
    
    	if err := mkdirAll(pathJoin(diskPath, minioMetaTmpDeletedBucket), 0o777, diskPath); err != nil {
    		storageLogIf(GlobalContext, fmt.Errorf("unable to create (%s) %w, drive may be faulty, please investigate",
    			pathJoin(diskPath, minioMetaTmpBucket),
    			err))
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun May 19 08:06:49 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top