{"modulePath":"github.com/ejfkdev/udf","version":"v0.7.9","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package sync\n\n## Functions\n\n```go\nfunc CompareFS(origFS, targetFS fs.FS) error\n```\nCompareFS compares two fs.FS instances for identical structure and contents.\n\n```go\nfunc CopyFileSystem(src fs.FS, dst filesystem.FileSystem) error\n```\nCopyFileSystem copies files from a source fs.FS to a destination filesystem.FileSystem, preserving structure and contents.\n\n```go\nfunc CopyPartitionRaw(d *disk.Disk, from, to int) error\n```\nCopyPartitionRaw copies raw data from one partition to another and verifies the copy.\n\n```go\nfunc NewLimitWriter(w io.Writer, n int64) io.Writer\n```\nNewLimitWriter creates a new LimitedWriter.\n\n## Types\n\n```go\ntype LimitedWriter struct {\n\tW io.Writer // underlying writer\n\tN int64     // max bytes remaining\n}\n```\nLimitedWriter writes to W but limits the total amount of data written to N bytes. Each call to Write updates N to reflect the new amount remaining.\n\n```go\nfunc (l *LimitedWriter) Write(p []byte) (n int, err error)\n```\n\n","path":"github.com/ejfkdev/udf/diskkit/sync","name":"sync","synopsis":"","isRedistributable":true}
