MCPcopy Create free account
hub / github.com/cloudfoundry/java-buildpack / copyFile

Function copyFile

src/java/jres/memory_calculator.go:453–459  ·  view source on GitHub ↗

Helper function to copy files

(src, dst string)

Source from the content-addressed store, hash-verified

451
452// Helper function to copy files
453func copyFile(src, dst string) error {
454 data, err := os.ReadFile(src)
455 if err != nil {
456 return err
457 }
458 return os.WriteFile(dst, data, 0755)
459}
460
461func (m *MemoryCalculator) classCountDisplay() string {
462 if m.classCountUserSet {

Callers 1

SupplyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected