Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 174 for indir (0.04 sec)

  1. src/os/stat_test.go

    	t.Helper()
    	if !fi.IsDir() {
    		t.Errorf("%q should be a directory", path)
    	}
    	if fi.Mode()&fs.ModeSymlink != 0 {
    		t.Errorf("%q should not be a symlink", path)
    	}
    }
    
    // testIsSymlink verifies that fi refers to symlink.
    func testIsSymlink(t *testing.T, path string, fi fs.FileInfo) {
    	t.Helper()
    	if fi.IsDir() {
    		t.Errorf("%q should not be a directory", path)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:38:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. src/io/fs/readdir.go

    		return bytealg.CompareString(a.Name(), b.Name())
    	})
    	return list, err
    }
    
    // dirInfo is a DirEntry based on a FileInfo.
    type dirInfo struct {
    	fileInfo FileInfo
    }
    
    func (di dirInfo) IsDir() bool {
    	return di.fileInfo.IsDir()
    }
    
    func (di dirInfo) Type() FileMode {
    	return di.fileInfo.Mode().Type()
    }
    
    func (di dirInfo) Info() (FileInfo, error) {
    	return di.fileInfo, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/os/dir_plan9.go

    	}
    	return names, dirents, infos, nil
    }
    
    type dirEntry struct {
    	fs *fileStat
    }
    
    func (de dirEntry) Name() string            { return de.fs.Name() }
    func (de dirEntry) IsDir() bool             { return de.fs.IsDir() }
    func (de dirEntry) Type() FileMode          { return de.fs.Mode().Type() }
    func (de dirEntry) Info() (FileInfo, error) { return de.fs, nil }
    
    func (de dirEntry) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/pkg.go

    			// Install cross-compiled binaries to subdirectories of bin.
    			elem = full
    		}
    		if p.Internal.Build.BinDir == "" && cfg.ModulesEnabled {
    			p.Internal.Build.BinDir = modload.BinDir()
    		}
    		if p.Internal.Build.BinDir != "" {
    			// Install to GOBIN or bin of GOPATH entry.
    			p.Target = filepath.Join(p.Internal.Build.BinDir, elem)
    			if !p.Goroot && strings.Contains(elem, string(filepath.Separator)) && cfg.GOBIN != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  5. src/os/path.go

    // and returns nil.
    func MkdirAll(path string, perm FileMode) error {
    	// Fast path: if we can tell whether path is a directory or file, stop with success or error.
    	dir, err := Stat(path)
    	if err == nil {
    		if dir.IsDir() {
    			return nil
    		}
    		return &PathError{Op: "mkdir", Path: path, Err: syscall.ENOTDIR}
    	}
    
    	// Slow path: make sure parent exists and then call Mkdir for path.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/os/types.go

    	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.
    // For example, on Unix this means that the device and inode fields
    // of the two underlying structures are identical; on other systems
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/os/read_test.go

    	if err != nil {
    		t.Fatalf("ReadDir %s: %v", dirname, err)
    	}
    
    	foundFile := false
    	foundSubDir := false
    	for _, dir := range list {
    		switch {
    		case !dir.IsDir() && dir.Name() == "read_test.go":
    			foundFile = true
    		case dir.IsDir() && dir.Name() == "exec":
    			foundSubDir = true
    		}
    	}
    	if !foundFile {
    		t.Fatalf("ReadDir %s: read_test.go file not found", dirname)
    	}
    	if !foundSubDir {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/path/filepath/path.go

    	if err := walkDirFn(path, d, nil); err != nil || !d.IsDir() {
    		if err == SkipDir && d.IsDir() {
    			// Successfully skipped directory.
    			err = nil
    		}
    		return err
    	}
    
    	dirs, err := os.ReadDir(path)
    	if err != nil {
    		// Second call, to report ReadDir error.
    		err = walkDirFn(path, d, err)
    		if err != nil {
    			if err == SkipDir && d.IsDir() {
    				err = nil
    			}
    			return err
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/NormalizingCopyActionDecoratorTest.groovy

            then:
            0 * delegateAction._
        }
    
        private FileCopyDetailsInternal file(final String path, final boolean isDir, final boolean includeEmptyDirs) {
            return Stub(FileCopyDetailsInternal) {
                getRelativePath() >> RelativePath.parse(false, path)
                isDirectory() >> isDir
                isIncludeEmptyDirs() >> includeEmptyDirs
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 22 14:38:33 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. src/net/http/fs.go

    	Stat() (fs.FileInfo, error)
    }
    
    type anyDirs interface {
    	len() int
    	name(i int) string
    	isDir(i int) bool
    }
    
    type fileInfoDirs []fs.FileInfo
    
    func (d fileInfoDirs) len() int          { return len(d) }
    func (d fileInfoDirs) isDir(i int) bool  { return d[i].IsDir() }
    func (d fileInfoDirs) name(i int) string { return d[i].Name() }
    
    type dirEntryDirs []fs.DirEntry
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top