[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: confusing error message in os.rename (bug?)
- From: Wolfram Ladurner <wl@...>
- Date: Thu, 18 Oct 2012 15:00:36 +0200
$ touch testfile
$ lua -e 'assert( os.rename( "testfile", "/does/not/exist" ) )'
lua: <command line>:1: testfile: No such file or directory
stack traceback:
[C]: in function `assert'
<command line>:1: in main chunk
[C]: ?
The error message looks like the testfile does not exist, while it is
the new name that is causing the error.
--
Wolfram Ladurner