Remove workspace state subsystem
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Package fileutil provides narrow filesystem helpers for durable artifacts.
|
||||
// Package fileutil provides narrow filesystem helpers for operator-owned outputs.
|
||||
package fileutil
|
||||
|
||||
import (
|
||||
@@ -38,11 +38,3 @@ func WriteJSONAtomic(path string, value any) error {
|
||||
}
|
||||
return WriteFileAtomic(path, data)
|
||||
}
|
||||
|
||||
func CopyFileAtomic(source string, target string) error {
|
||||
data, err := os.ReadFile(source)
|
||||
if err != nil {
|
||||
return fmt.Errorf("read %q: %w", source, err)
|
||||
}
|
||||
return WriteFileAtomic(target, data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user