Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,140 for filedata (0.24 sec)

  1. src/cmd/go/internal/search/search.go

    			top = true
    			path = filepath.Clean(path)
    		}
    
    		// Avoid .foo, _foo, and testdata directory trees, but do not avoid "." or "..".
    		_, elem := filepath.Split(path)
    		dot := strings.HasPrefix(elem, ".") && elem != "." && elem != ".."
    		if dot || strings.HasPrefix(elem, "_") || elem == "testdata" {
    			return filepath.SkipDir
    		}
    
    		if !top && cfg.ModulesEnabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  2. tensorflow/c/env_test.cc

                        << TF_Message(s);
    
        ::tensorflow::string filepath =
            ::tensorflow::io::JoinPath(dirpath, "somefile.txt");
        TF_WritableFileHandle* handle;
        TF_NewWritableFile(filepath.c_str(), &handle, s);
        ASSERT_TF_OK(s) << "NewWritableFile failed for " << filepath << ": "
                        << TF_Message(s);
    
        const char* data = "Hello, world!\n";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Dec 10 20:52:48 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  3. src/path/filepath/path_windows_test.go

    	// Make sure we have sufficient privilege to run mklink command.
    	testenv.MustHaveSymlink(t)
    
    	file := filepath.Join(tmpdir, "file")
    	err = os.WriteFile(file, []byte(""), 0666)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	target = filepath.Join(target, file[len(filepath.VolumeName(file)):])
    
    	filelink := filepath.Join(tmpdir, "filelink")
    	output, err = exec.Command("cmd", "/c", "mklink", filelink, target).CombinedOutput()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. src/os/executable_test.go

    	"fmt"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"runtime"
    	"testing"
    )
    
    const executable_EnvVar = "OSTEST_OUTPUT_EXECPATH"
    
    func TestExecutable(t *testing.T) {
    	testenv.MustHaveExec(t)
    	t.Parallel()
    
    	ep, err := os.Executable()
    	if err != nil {
    		t.Fatalf("Executable failed: %v", err)
    	}
    	// we want fn to be of the form "dir/prog"
    	dir := filepath.Dir(filepath.Dir(ep))
    	fn, err := filepath.Rel(dir, ep)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. src/path/filepath/example_test.go

    // license that can be found in the LICENSE file.
    
    package filepath_test
    
    import (
    	"fmt"
    	"path/filepath"
    )
    
    func ExampleExt() {
    	fmt.Printf("No dots: %q\n", filepath.Ext("index"))
    	fmt.Printf("One dot: %q\n", filepath.Ext("index.js"))
    	fmt.Printf("Two dots: %q\n", filepath.Ext("main.test.js"))
    	// Output:
    	// No dots: ""
    	// One dot: ".js"
    	// Two dots: ".js"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:24:37 UTC 2017
    - 475 bytes
    - Viewed (0)
  6. src/os/file_open_wasip1.go

    	"internal/poll"
    	"syscall"
    )
    
    func open(filePath string, flag int, perm uint32) (int, poll.SysFile, error) {
    	if filePath == "" {
    		return -1, poll.SysFile{}, syscall.EINVAL
    	}
    	absPath := filePath
    	// os.(*File).Chdir is emulated by setting the working directory to the
    	// absolute path that this file was opened at, which is why we have to
    	// resolve and capture it here.
    	if filePath[0] != '/' {
    		wd, err := syscall.Getwd()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 818 bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/staticpod/utils_linux.go

    	saPublicKeyFile := filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPublicKeyName)
    	if err := updatePathOwnerAndPermissions(saPublicKeyFile, *runAsUser, *runAsGroup, 0600); err != nil {
    		return err
    	}
    	saPrivateKeyFile := filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPrivateKeyName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 14:41:12 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  8. src/cmd/cover/cover_test.go

    	testenv.MustHaveGoRun(t)
    	dir := tempDir(t)
    
    	t.Parallel()
    
    	htmlUDir := filepath.Join(dir, "htmlunformatted")
    	htmlU := filepath.Join(htmlUDir, "htmlunformatted.go")
    	htmlUTest := filepath.Join(htmlUDir, "htmlunformatted_test.go")
    	htmlUProfile := filepath.Join(htmlUDir, "htmlunformatted.cov")
    	htmlUHTML := filepath.Join(htmlUDir, "htmlunformatted.html")
    
    	if err := os.Mkdir(htmlUDir, 0777); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  9. src/cmd/internal/archive/archive_test.go

    			if err != nil {
    				return err
    			}
    
    			go1obj := filepath.Join(buildDir, "go1.o")
    			go2obj := filepath.Join(buildDir, "go2.o")
    			goarchive := filepath.Join(buildDir, "go.a")
    			cgoarchive := ""
    
    			gotool, err := testenv.GoTool()
    			if err != nil {
    				return err
    			}
    
    			go1src := filepath.Join("testdata", "go1.go")
    			go2src := filepath.Join("testdata", "go2.go")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 19:27:33 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. src/cmd/go/internal/str/path.go

    // filesystem is not, does not apply Unicode normalization even if the
    // filesystem does, and assumes that all path separators are canonicalized to
    // filepath.Separator (as returned by filepath.Clean).
    func HasFilePathPrefix(s, prefix string) bool {
    	sv := filepath.VolumeName(s)
    	pv := filepath.VolumeName(prefix)
    
    	// Strip the volume from both paths before canonicalizing sv and pv:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:02 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top