func zerofill(filepath string, stdOut bool) (err error) {
	fi, err := os.Stat(filepath)
	check(err)
	switch mode := fi.Mode(); {
	case mode.IsDir():
		if !stdOut {
			fmt.Printf("%s\n", "Didn't zerofill/delete unencrypted file \""+
				filepath+"\" as it's not a file")
		}
	case mode.IsRegular():
		file, err := os.OpenFile(filepath, os.O_RDWR, 0666)
		check(err)
		defer file.Close()
		fileInfo, err := file.Stat()
		check(err)
		zeroBytes := make([]byte, fileInfo.Size())
		n, err := file.Write(zeroBytes)
		check(err)
		if !stdOut {
			fmt.Printf("Wiped %v bytes from %s.\n", n, filepath)
		}
	}
	return
}
//zerofill zerofills the desired file
zerofill zerofills the desired file
// zerofill zerofills the desired file
func zerofill(filepath string, stdOut bool) (err error) {
	fi, err := os.Stat(filepath)
	check(err)
	switch mode := fi.Mode(); {
	case mode.IsDir():
		if !stdOut {
			fmt.Printf("%s\n", "Didn't zerofill/delete unencrypted file \""+
				filepath+"\" as it's not a file")
		}
	case mode.IsRegular():
		file, err := os.OpenFile(filepath, os.O_RDWR, 0666)
		check(err)
		defer file.Close()
		fileInfo, err := file.Stat()
		check(err)
		zeroBytes := make([]byte, fileInfo.Size())
		n, err := file.Write(zeroBytes)
		check(err)
		if !stdOut {
			fmt.Printf("Wiped %v bytes from %s.\n", n, filepath)
		}
	}
	return
}
func zerofill ( filepath string , stdOut bool ) ( err error ) { fi , err := os . Stat ( filepath ) check ( err ) switch mode := fi . Mode ( ) ; { case mode . IsDir ( ) : if ! stdOut { fmt . Printf ( " \n " , " \" " + filepath + " \" " ) } case mode . IsRegular ( ) : file , err := os . OpenFile ( filepath , os . O_RDWR , 0666 ) check ( err ) defer file . Close ( ) fileInfo , err := file . Stat ( ) check ( err ) zeroBytes := make ( [ ] byte , fileInfo . Size ( ) ) n , err := file . Write ( zeroBytes ) check ( err ) if ! stdOut { fmt . Printf ( " \n " , n , filepath ) } } return }
zerofill zerofills the desired file
zerofill zerofills the desired file