Tuesday, November 29. 2011
Some minutes ago vfsStream 0.11.0 was released with several bug fixes and new features. Unfortunately this introduces a BC break to the vfsStream::create() method introduced with 0.10.0. While in 0.10.0 it completely replaced the directory structure this is not the case any more. It now only adds the given structure to an existing structure, either to the directory given with the second parameter, or to the root directory without removing any other childs of the root directory. If you want to replace the whole directory tree you can use the vfsStream::setup() method which now has a third parameter. See /a href="http://www.stubbles.org/exit.php?url_id=574&entry_id=99" title="https://github.com/mikey179/vfsStream/wiki/Createcomplexstructures" onmouseover="window.status='https://github.com/mikey179/vfsStream/wiki/Createcomplexstructures';return true;" onmouseout="window.status='';return true;">create complex directory structures documentation for code examples.
Another new feature is the possibility to import a file system structure from disc into vfsStream. This way you can emulate an existing file structure in vfsStream without having to recreate it from scratch. See /a href="http://www.stubbles.org/exit.php?url_id=575&entry_id=99" title="https://github.com/mikey179/vfsStream/wiki/Copyfromfilesystem" onmouseover="window.status='https://github.com/mikey179/vfsStream/wiki/Copyfromfilesystem';return true;" onmouseout="window.status='';return true;">copy from file system documentation for more details.
Additionally, three bugs were fixed: unlink() does not remove non-empty directory any more, vfsStreamDirectory::hasChild() now doesn't give false positives for nested paths (patch provided by Andrew Coulton), and opening a file for reading only doesn't update the modification time any more (initial patch provided by Ludovic Chabant).
Thanks to all contributors and issue reporters for their help to improve vfsStream.
As always you can get the new release via our /a href="http://www.stubbles.org/exit.php?url_id=576&entry_id=99" title="https://github.com/mikey179/vfsStream/wiki/Install" onmouseover="window.status='https://github.com/mikey179/vfsStream/wiki/Install';return true;" onmouseout="window.status='';return true;">pear channel.
Display comments as (Linear | Threaded)
/a href="http://www.stubbles.org/">Frontpage - /a href="#topofpage">Top level
Powered by /a href="http://www.s9y.org">s9y - Design by /a href="http://www.mistralys.com/">Mistralys