Re: confusing error message in os.rename (bug?)
[
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: 2012年10月18日 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