func (s *DumpSystem) WriteFile(filename AbsPath, data []byte, perm fs.FileMode) error {
	return s.setData(filename.String(), &fileData{
		Type:     dataTypeFile,
		Name:     filename,
		Contents: string(data),
		Perm:     perm,
	})
}
// WriteFile implements System.WriteFile.
WriteFile implements System.WriteFile.
// WriteFile implements System . WriteFile .
func (s *DumpSystem) WriteFile(filename AbsPath, data []byte, perm fs.FileMode) error {
	return s.setData(filename.String(), &fileData{
		Type:     dataTypeFile,
		Name:     filename,
		Contents: string(data),
		Perm:     perm,
	})
}
func ( s * DumpSystem ) WriteFile ( filename AbsPath , data [ ] byte , perm fs . FileMode ) error { return s . setData ( filename . String ( ) , & fileData { Type : dataTypeFile , Name : filename , Contents : string ( data ) , Perm : perm , } ) }
WriteFile implements System.WriteFile.
WriteFile implements System . WriteFile .