Re: simple VFS implementation

2016-12-12 Thread ketmar via Digitalmars-d-announce
contrary to what i said ealier, there is now a way to get list of known files, with their times and packed size (if containter supports that feature). zip reader now understands all standard zip methods (including "shrink", "reduce" and "implode"), and LZMA (no external lzma library

Re: simple VFS implementation

2016-04-27 Thread ketmar via Digitalmars-d-announce
iv.vfs gained ability to list files in all registered VFSes, and it now can open disk files regardless of name case on POSIX systems (this is controlled by global flags, or additional letters «i» and «I» in file mode arg).

Re: simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
p.s. it's only for opening files with known names and doing file i/o. it doesn't support other FS operations (like getting list of files, or file renaming), as i wrote it for using in my game engines, and i don't need such operations there. so i won't add that, it's out of scope of the

Re: simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
oops. almost forgot to mention that it works only with POSIX systems now. windoze port *may* be done in the future (it's not that hard — basically, replace fopen/fseek/etc. imports and calls). sure, you can DIY and send me a patch too.

simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
here[1] you can get a simple VFS system (yep, another one!). it introduces `VFile` struct (kinda like `std.stdio.File`, but with less features), which can wrap your own custom streams, `std.stdio.File`, libc `FILE*`, integer file descriptor... actually, anything you'll do a simple wrapper for.