diff --git a/examples/rename.lua b/examples/rename.lua index 20bf88f..40ef2eb 100755 --- a/examples/rename.lua +++ b/examples/rename.lua @@ -41,6 +41,6 @@ for filename in dir(path) do -- Print a nice message and rename things write(from, ' -> ', to) - assert(osx.rename(filename, newfilename)) + assert(osx.rename(from, to)) end end