lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Nov 30, 2009 at 23:16, Florian Weimer <fw@deneb.enyo.de> wrote:
> * Alexander Gladysh:

>> I think I should use os.execute with output, piped into a temporary
>> file (sine io.popen doesn't work on Windows).

> This won't work reliably due to charset issues, I fear.  You really
> have to use proper operating system APIs for this job.

Even if I don't need absolute paths and all files and sub-directories
that I traverse are guaranteed to be contain [a-zA-Z_-.] only?

Alexander.