Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 198 for filemode (0.14 sec)

  1. src/cmd/go/internal/toolchain/umask_none.go

    // license that can be found in the LICENSE file.
    
    //go:build !(darwin || freebsd || linux || netbsd || openbsd)
    
    package toolchain
    
    import "io/fs"
    
    func sysWriteBits() fs.FileMode {
    	return 0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:44:08 UTC 2023
    - 307 bytes
    - Viewed (0)
  2. src/io/fs/readdir_test.go

    			Sys:     &sysValue,
    		},
    		"adir": {
    			Data:    nil,
    			Mode:    os.ModeDir,
    			ModTime: time.Now(),
    			Sys:     &sysValue,
    		},
    	}
    
    	tests := []struct {
    		path     string
    		wantMode FileMode
    		wantDir  bool
    	}{
    		{path: "notadir.txt", wantMode: 0, wantDir: false},
    		{path: "adir", wantMode: os.ModeDir, wantDir: true},
    	}
    
    	for _, test := range tests {
    		test := test
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:25:41 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. cmd/os_other.go

    package cmd
    
    import (
    	"io"
    	"os"
    	"syscall"
    )
    
    func access(name string) error {
    	_, err := os.Lstat(name)
    	return err
    }
    
    func osMkdirAll(dirPath string, perm os.FileMode, _ string) error {
    	// baseDir is not honored in plan9 and solaris platforms.
    	return os.MkdirAll(dirPath, perm)
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 13 15:14:36 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DefaultCopySpecTest.groovy

        def 'properties accessed directly have defaults'() {
            expect:
            spec.caseSensitive
            spec.includeEmptyDirs
            spec.duplicatesStrategy == DuplicatesStrategy.INCLUDE
            spec.fileMode == null
            !spec.filePermissions.isPresent()
            spec.dirMode == null
            !spec.dirPermissions.isPresent()
            spec.filteringCharset == Charset.defaultCharset().name()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 26 08:05:50 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  5. pkg/volume/util/hostutil/hostutil.go

    	// GetSELinuxSupport returns true if given path is on a mount that supports
    	// SELinux.
    	GetSELinuxSupport(pathname string) (bool, error)
    	// GetMode returns permissions of the path.
    	GetMode(pathname string) (os.FileMode, error)
    	// GetSELinuxMountContext returns value of -o context=XYZ mount option on
    	// given mount point.
    	GetSELinuxMountContext(pathname string) (string, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/os/stat_darwin.go

    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtimespec.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK, syscall.S_IFWHT:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    	case syscall.S_IFDIR:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/os/stat_dragonfly.go

    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtim.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    	case syscall.S_IFDIR:
    		fs.mode |= ModeDir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. pkg/file/file.go

    }
    
    // Write atomically by writing to a temporary file in the same directory then renaming
    func AtomicWrite(path string, data []byte, mode os.FileMode) error {
    	return AtomicWriteReader(path, bytes.NewReader(data), mode)
    }
    
    func AtomicWriteReader(path string, data io.Reader, mode os.FileMode) error {
    	tmpFile, err := os.CreateTemp(filepath.Dir(path), filepath.Base(path)+".tmp.")
    	if err != nil {
    		return err
    	}
    	defer func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 21:42:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. src/go/doc/testdata/blank.2.golden

    	// Constants with a single type that is not propagated. 
    	const (
    		Default		= 0644
    		Useless		= 0312
    		WideOpen	= 0777
    	)
    
    	// Constants with an imported type that is propagated. 
    	const (
    		M1	os.FileMode
    		M2
    		M3
    	)
    
    	// Package constants. 
    	const (
    		I1	int
    		I2
    	)
    
    
    TYPES
    	// S has a padding field. 
    	type S struct {
    		H	uint32
    	
    		A	uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 01:12:26 UTC 2017
    - 751 bytes
    - Viewed (0)
  10. src/os/stat_js.go

    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtime, fs.sys.MtimeNsec)
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    	case syscall.S_IFDIR:
    		fs.mode |= ModeDir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top