[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Portably iterate over a directory
- From: Alexander Gladysh <agladysh@...>
- Date: Mon, 30 Nov 2009 23:54:48 +0300
On Mon, Nov 30, 2009 at 23:16, Florian Weimer <firstname.lastname@example.org> 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?