MCPcopy
hub / github.com/kopia/kopia / WriteFile

Method WriteFile

snapshot/restore/restore.go:31–31  ·  view source on GitHub ↗
(ctx context.Context, relativePath string, e fs.File, progressCb FileWriteProgress)

Source from the content-addressed store, hash-verified

29 WriteDirEntry(ctx context.Context, relativePath string, de *snapshot.DirEntry, e fs.Directory) error
30 FinishDirectory(ctx context.Context, relativePath string, e fs.Directory) error
31 WriteFile(ctx context.Context, relativePath string, e fs.File, progressCb FileWriteProgress) error
32 FileExists(ctx context.Context, relativePath string, e fs.File) bool
33 CreateSymlink(ctx context.Context, relativePath string, e fs.Symlink) error
34 SymlinkExists(ctx context.Context, relativePath string, e fs.Symlink) bool

Callers 15

verifyTemplateFunction · 0.65
TestSnapshotListFunction · 0.65
runMethod · 0.65
TestSnapshotStorageStatsFunction · 0.65
TestSnapshotPinFunction · 0.65
TestLoadPEMPathFunction · 0.65
TestImportPolicyFunction · 0.65
TestSnapshotEstimateFunction · 0.65

Implementers 3

ZipOutputsnapshot/restore/zip_output.go
FilesystemOutputsnapshot/restore/local_fs_output.go
TarOutputsnapshot/restore/tar_output.go

Calls

no outgoing calls

Tested by 15

verifyTemplateFunction · 0.52
TestSnapshotListFunction · 0.52
TestSnapshotStorageStatsFunction · 0.52
TestSnapshotPinFunction · 0.52
TestLoadPEMPathFunction · 0.52
TestImportPolicyFunction · 0.52
TestSnapshotEstimateFunction · 0.52