lua-users home
lua-l archive

Re: Creating a directory in a lua script

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


Frank Küster <frank@kuesterei.ch> writes:
> Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
>
>> You can try
>> 	os.execute("mkdir xxx")
>> but it'll be hard to get reliable status back.
>
> Hm, I'm surprised to find that this even works on Windows (at least on
> XP); I could check whether the directory exists in the next step. Any
> idea about older Windowsen?
mkdir has been a system command since MSDOS 2.0 or so (1.0 not having
directories IIRC).
-- 
David Kastrup

AltStyle によって変換されたページ (->オリジナル) /