Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 176 for filemode (0.11 sec)

  1. pkg/kubelet/container/os.go

    // during tests.
    type OSInterface interface {
    	MkdirAll(path string, perm os.FileMode) error
    	Symlink(oldname string, newname string) error
    	Stat(path string) (os.FileInfo, error)
    	Remove(path string) error
    	RemoveAll(path string) error
    	Create(path string) (*os.File, error)
    	Chmod(path string, perm os.FileMode) error
    	Hostname() (name string, err error)
    	Chtimes(path string, atime time.Time, mtime time.Time) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  2. src/os/dirent_wasip1.go

    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    	off := unsafe.Offsetof(syscall.Dirent{}.Type)
    	if off >= uintptr(len(buf)) {
    		return ^FileMode(0) // unknown
    	}
    	switch syscall.Filetype(buf[off]) {
    	case syscall.FILETYPE_BLOCK_DEVICE:
    		return ModeDevice
    	case syscall.FILETYPE_CHARACTER_DEVICE:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/io/fs/fs.go

    func (m FileMode) IsDir() bool {
    	return m&ModeDir != 0
    }
    
    // IsRegular reports whether m describes a regular file.
    // That is, it tests that no mode type bits are set.
    func (m FileMode) IsRegular() bool {
    	return m&ModeType == 0
    }
    
    // Perm returns the Unix permission bits in m (m & [ModePerm]).
    func (m FileMode) Perm() FileMode {
    	return m & ModePerm
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 15 21:21:41 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. internal/lock/lock_solaris.go

    // flags and shouldn't be considered as replacement
    // for os.OpenFile().
    func LockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) {
    	return lockedOpenFile(path, flag, perm, syscall.F_SETLKW)
    }
    
    // Open - Call os.OpenFile
    func Open(path string, flag int, perm os.FileMode) (*os.File, error) {
    	return os.OpenFile(path, flag, perm)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  5. api/except.txt

    pkg os, const ModeAppend FileMode
    pkg os, const ModeCharDevice FileMode
    pkg os, const ModeDevice FileMode
    pkg os, const ModeDir FileMode
    pkg os, const ModeExclusive FileMode
    pkg os, const ModeIrregular FileMode
    pkg os, const ModeNamedPipe FileMode
    pkg os, const ModePerm FileMode
    pkg os, const ModeSetgid FileMode
    pkg os, const ModeSetuid FileMode
    pkg os, const ModeSocket FileMode
    pkg os, const ModeSticky FileMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:13:30 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  6. src/io/fs/format_test.go

    type formatTest struct {
    	name    string
    	size    int64
    	mode    FileMode
    	modTime time.Time
    	isDir   bool
    }
    
    func (fs *formatTest) Name() string {
    	return fs.name
    }
    
    func (fs *formatTest) Size() int64 {
    	return fs.size
    }
    
    func (fs *formatTest) Mode() FileMode {
    	return fs.mode
    }
    
    func (fs *formatTest) ModTime() time.Time {
    	return fs.modTime
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 17:59:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. src/os/types_plan9.go

    )
    
    // A fileStat is the implementation of FileInfo returned by Stat and Lstat.
    type fileStat struct {
    	name    string
    	size    int64
    	mode    FileMode
    	modTime time.Time
    	sys     any
    }
    
    func (fs *fileStat) Size() int64        { return fs.size }
    func (fs *fileStat) Mode() FileMode     { return fs.mode }
    func (fs *fileStat) ModTime() time.Time { return fs.modTime }
    func (fs *fileStat) Sys() any           { return fs.sys }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 797 bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DefaultCopySpecResolutionTest.groovy

            childResolver.fileMode == 0x1
            childResolver.dirMode == 0x2
    
            when:
            child.fileMode = 0x3
            child.dirMode = 0x4
    
            then:
            childResolver.fileMode == 0x3
            childResolver.dirMode == 0x4
        }
    
        def canWalkDownTreeCreatedUsingFromIntegrationTest() {
    
            CopySpec child = parentSpec.from('somedir') { into 'child' }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 28 12:39:32 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. src/os/types.go

    type FileInfo = fs.FileInfo
    
    // A FileMode represents a file's mode and permission bits.
    // The bits have the same definition on all systems, so that
    // information about files can be moved from one system
    // to another portably. Not all bits apply to all systems.
    // The only required bit is [ModeDir] for directories.
    type FileMode = fs.FileMode
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. pkg/kubelet/certificate/kubelet_test.go

    	}
    
    	certPath := filepath.Join(certDir, "kubelet.cert")
    	keyPath := filepath.Join(certDir, "kubelet.key")
    	if err := removeThenCreate(certPath, cert, os.FileMode(0644)); err != nil {
    		return "", "", err
    	}
    
    	if err := removeThenCreate(keyPath, key, os.FileMode(0600)); err != nil {
    		return "", "", err
    	}
    
    	return certPath, keyPath, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:40 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top