[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Proposal: Virtualization of Filesystem Operations for Lua 5.2.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 2 Nov 2011 18:02:11 -0200
> - open(path,"d+") creates a directory
> - open(path,"d"[,attributes]) returns an iterator over the directory path,
> returning filenames of existing files matching the attributes table
Interesting but perhaps it is not a good idea to overload open when mkdir
exists and also readdir etc.
> - remove(path) also removes (empty) directories
os.remove already does that, at least under POSIX. I don't know about Windows.
Perhaps your proposal can be first fleshed out as a working library
so that we evaluate it...