License:
BSD style: see license.txt

Version:
The Great Namechange: February 2008

Initial release: December 2007

author:
Daniel Keep

  • class ZipFolder : tango.io.vfs.ZipFolder.ZipSubFolder;
  • ZipFolder serves as the root object for all Zip archives in the VFS. Presently, it can only open archives on the local filesystem.

  • this(FilePath path, bool readonly = false);
    this(char[] path, bool readonly = false);
  • Opens an archive from the local filesystem. If the readonly argument is specified as true, then modification of the archive will be explicitly disallowed.

  • final VfsFolder close (bool commit = true);
  • Closes the archive, and releases all internal resources. If the commit argument is true (the default), then changes to the archive will be flushed out to disk. If false, changes will simply be discarded.

  • final VfsFolder sync ();
  • Flushes all changes to the archive out to disk.

  • final bool readonly ();
  • Indicates whether the archive was opened for read-only access. Note that in addition to the readonly constructor flag, this is also influenced by whether the file itself is read-only or not.

  • final char[] path ();
    final char[] path (char[] v);
  • Allows you to read and specify the path to the archive. The effect of setting this is to change where the archive will be written to when flushed to disk.



    Allows you to read and specify the path to the archive. The effect of setting this is to change where the archive will be written to when flushed to disk.


  • class ZipSubFolder : tango.io.vfs.model.Vfs.VfsFolder, tango.io.vfs.model.Vfs.VfsSync;
  • This class represents a folder in an archive. In addition to supporting the sync operation, you can also use the archive member to get a reference to the underlying ZipFolder instance.

  • final char[] name ();


  • final char[] toString ();


  • final VfsFile file (char[] path);


  • final VfsFolderEntry folder (char[] path);


  • final VfsFolders self ();


  • final VfsFolders tree ();


  • final int opApply (int delegate(ref VfsFolder) dg);


  • final VfsFolder clear ();


  • final bool writable ();


  • VfsFolder close (bool commit = true);
  • Closes this folder object. If commit is true, then the folder is sync'ed before being closed.

  • VfsFolder sync ();
  • This will flush any changes to the archive to disk. Note that this applies to the entire archive, not just this folder and its contents.

  • final void verify (VfsFolder folder, bool mounting);


  • final ZipFolder archive ();
  • Returns a reference to the underlying ZipFolder instance.

  • class ZipFile : tango.io.vfs.model.Vfs.VfsFile;
  • This class represents a file within an archive.

  • final char[] name ();


  • final char[] toString ();


  • final bool exists ();


  • final ulong size ();


  • final VfsFile copy (VfsFile source);


  • final VfsFile move (VfsFile source);


  • final VfsFile create ();


  • final VfsFile create (InputStream stream);


  • final VfsFile remove ();


  • final InputStream input ();


  • final OutputStream output ();


  • final VfsFile dup ();


  • Copyright © 2007 Daniel Keep. All rights reserved. :: page rendered by CandyDoc