providers/os: Rename removeFile to remove

Same reason as renameFile -> rename
This commit is contained in:
Sasha Koshka 2025-03-27 19:50:49 -04:00
parent 4f71e8502a
commit bc3b486704

View File

@ -38,7 +38,7 @@ func (this *Provider) FuncMapFor (document *step.Document) template.FuncMap {
"listFilesDate": stat.funcListFilesDate,
"writeFile": stat.funcWriteFile,
"appendFile": stat.funcAppendFile,
"removeFile": stat.funcRemoveFile,
"remove": stat.funcRemove,
"rename": stat.funcRename,
"createDir": stat.funcCreateDir,
"createDirAll": stat.funcCreateDirAll,
@ -152,7 +152,7 @@ func (this *state) funcAppendFile (name, content string) error {
return err
}
func (this *state) funcRemoveFile (name string) error {
func (this *state) funcRemove(name string) error {
name, err := this.document.Rel(name)
if err != nil { return err }
return os.Remove(name)