[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: confusing error message in os.rename (bug?)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 18 Oct 2012 10:05:37 -0300
> $ lua -e 'assert( os.rename( "testfile", "/does/not/exist" ) )'
> lua: <command line>:1: testfile: No such file or directory
The message comes from the OS. There is nothing we can do about it.
Try it on the command line:
mv testfile /does/not/exist
You'll get
mv: rename testfile to /does/not/exist: No such file or directory