Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 153 for dirpath (0.18 sec)

  1. cmd/os_other.go

    	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
    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. cmd/os-reliable.go

    // this is to ensure that if there is a racy parent directory
    // create in between we can simply retry the operation.
    func removeAll(dirPath string) (err error) {
    	if dirPath == "" {
    		return errInvalidArgument
    	}
    
    	if err = checkPathLength(dirPath); err != nil {
    		return err
    	}
    
    	if err = reliableRemoveAll(dirPath); err != nil {
    		switch {
    		case isSysErrNotDir(err):
    			// File path cannot be verified since one of
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    TEST_P(ModularFileSystemTest, TestCreateDir) {
      const std::string dirpath = GetURIForPath("a_dir");
      Status status = env_->CreateDir(dirpath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    }
    
    TEST_P(ModularFileSystemTest, TestCreateDirNoParent) {
      const std::string dirpath = GetURIForPath("dir_not_found/a_dir");
      Status status = env_->CreateDir(dirpath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::NOT_FOUND);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  4. cmd/os_windows.go

    	return err
    }
    
    func osMkdirAll(dirPath string, perm os.FileMode, _ string) error {
    	// baseDir is not honored in windows platform
    	return os.MkdirAll(dirPath, perm)
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. tensorflow/c/env_test.cc

        TF_Status* s = TF_NewStatus();
    
        ::tensorflow::string dirpath =
            ::tensorflow::io::JoinPath(tempdir, "somedir");
        TF_CreateDir(dirpath.c_str(), s);
        ASSERT_TF_OK(s) << "TF_CreateDir failed for " << dirpath << ": "
                        << TF_Message(s);
    
        ::tensorflow::string filepath =
            ::tensorflow::io::JoinPath(dirpath, "somefile.txt");
        TF_WritableFileHandle* handle;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  6. cmd/os-readdir-common.go

    	followDirSymlink bool
    }
    
    // Return all the entries at the directory dirPath.
    func readDir(dirPath string) (entries []string, err error) {
    	return readDirWithOpts(dirPath, readDirOpts{count: -1})
    }
    
    // Return up to count entries at the directory dirPath.
    func readDirN(dirPath string, count int) (entries []string, err error) {
    	return readDirWithOpts(dirPath, readDirOpts{count: count})
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Jul 09 23:20:51 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  7. cmd/os_unix.go

    // and returns nil.
    func osMkdirAll(dirPath string, perm os.FileMode, baseDir string) error {
    	if baseDir != "" {
    		if strings.HasPrefix(baseDir, dirPath) {
    			return nil
    		}
    	}
    
    	// Slow path: make sure parent exists and then call Mkdir for path.
    	i := len(dirPath)
    	for i > 0 && os.IsPathSeparator(dirPath[i-1]) { // Skip trailing path separator.
    		i--
    	}
    
    	j := i
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. cmd/os-instrumented.go

    func RemoveAll(dirPath string) (err error) {
    	defer updateOSMetrics(osMetricRemoveAll, dirPath)(err)
    	return os.RemoveAll(dirPath)
    }
    
    // Mkdir captures time taken to call os.Mkdir
    func Mkdir(dirPath string, mode os.FileMode) (err error) {
    	defer updateOSMetrics(osMetricMkdir, dirPath)(err)
    	return os.Mkdir(dirPath, mode)
    }
    
    // MkdirAll captures time taken to call os.MkdirAll
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. cmd/utils.go

    	// library creates to store profiling data.
    	switch madmin.ProfilerType(profilerType) {
    	case madmin.ProfilerCPU:
    		dirPath, err := os.MkdirTemp("", "profile")
    		if err != nil {
    			return nil, err
    		}
    		fn := filepath.Join(dirPath, "cpu.out")
    		f, err := Create(fn)
    		if err != nil {
    			return nil, err
    		}
    		err = pprof.StartCPUProfile(f)
    		if err != nil {
    			return nil, err
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 32K bytes
    - Viewed (0)
  10. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

            .listFiles()
            ?.associateWith { dir ->
                val dirPath = dir.toPath()
                Files.walk(dirPath).use { paths ->
                    paths.filter { !it.toFile().isDirectory }
                        .limit(4)
                        .map { dirPath.relativize(it).toString() }
                        .collect(Collectors.toList())
                }
            }?.filter {
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Jul 28 16:19:47 GMT 2023
    - 12.5K bytes
    - Viewed (0)
Back to top