providers/os: Rename removeFile to remove
Same reason as renameFile -> rename
This commit is contained in:
parent
4f71e8502a
commit
bc3b486704
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user