Eyeon:Script/Reference/Libraries/os/remove

From VFXPedia

< Eyeon:Script | Reference | Libraries | os
Revision as of 14:01, 9 December 2006 by Peter (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

OS : os.remove

Arguments

os.remove( filename )

  • filename (optional, string)

A path to a file..

Returns

If this function fails it will return nil, plus a string which describes the error.

Remarks

This function will delete the file specified by the filename argument, if it exists.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

result, errormsg = os.remove(arg[1]) if result == nil then

print(errormsg)

else

print("Deleted file ".. arg[1])

end


Tips for remove (edit)

EyeonTips:Script/Reference/Libraries/os/remove