Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-01 04:38:30 -05:00
parent 73cfe9b760
commit 2940358bf9
1 changed files with 6 additions and 2 deletions

View File

@ -75,8 +75,12 @@ func SetStderr(newerr *os.File) {
shellStderr = newerr shellStderr = newerr
} }
func Unlink(filename string) { func Unlink(filename string) bool {
os.Remove(Path(filename)) if err := os.Remove(filename); err != nil {
return Exists(filename)
} else {
return Exists(filename)
}
} }
func RM(filename string) { func RM(filename string) {