Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 176 for dotpath (0.26 sec)

  1. cmd/naughty-disk_test.go

    	if err := d.calcError(); err != nil {
    		return RenameDataResp{}, err
    	}
    	return d.disk.RenameData(ctx, srcVolume, srcPath, fi, dstVolume, dstPath, opts)
    }
    
    func (d *naughtyDisk) RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) error {
    	if err := d.calcError(); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    import okio.Path.Companion.toPath
    import okio.buffer
    import okio.fakefilesystem.FakeFileSystem
    
    class PostPath {
      private val client = OkHttpClient()
      private val fileSystem = FakeFileSystem()
      val path = "test.json".toPath()
    
      fun run() {
        fileSystem.write(path) {
          writeUtf8("{}")
        }
    
        val request =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/ant/properties/kotlin/build.gradle.kts

    ant.references["classpath"] = ant.withGroovyBuilder { "path"("location" to "libs") }
    // end::set-reference[]
    
    // tag::get-reference[]
    println(ant.references.get("antPath"))
    println(ant.references["antPath"])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 860 bytes
    - Viewed (0)
  6. cmd/storage-interface.go

    	ReadXL(ctx context.Context, volume, path string, readData bool) (RawFileInfo, error)
    	RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo, dstVolume, dstPath string, opts RenameOptions) (RenameDataResp, error)
    
    	// File operations.
    	ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) ([]string, error)
    	ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/ant/properties/kotlin/build.xml

    <property name="antProp" value="a property defined in an Ant build"/>
    <!-- end::getproperty[] -->
    
    <!-- tag::setreference[] -->
    <path refid="classpath"/>
    <!-- end::setreference[] -->
    
    <!-- tag::getreference[] -->
    <path id="antPath" location="libs"/>
    <!-- end::getreference[] -->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 421 bytes
    - Viewed (0)
  8. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/DefaultCopySpecCodec.kt

                writeCollection(value.children)
            }
        }
    
        override suspend fun ReadContext.decode(): DefaultCopySpec {
            return decodePreservingIdentity { id ->
                val destPath = readNullableString()
                val sourceFiles = read() as FileCollection
                val patterns = read() as PatternSet
                val duplicatesStrategy = readEnum<DuplicatesStrategy>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/internal/filepathlite/path_windows.go

    	for i := prefixLen; i < len(path); i++ {
    		if IsPathSeparator(path[i]) {
    			count++
    			if count == 2 {
    				return i
    			}
    		}
    	}
    	return len(path)
    }
    
    // cutPath slices path around the first path separator.
    func cutPath(path string) (before, after string, found bool) {
    	for i := range path {
    		if IsPathSeparator(path[i]) {
    			return path[:i], path[i+1:], true
    		}
    	}
    	return path, "", false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. 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.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 13 15:14:36 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top