BSD style: see
license.txt
August 2008: Initial version
Lester L. Martin II
- class FtpFolderEntry : VfsFolderEntry ¶#
-
Defines a folder over FTP that has yet to be opened, may not exist, and
may be created.
- VfsFolder open() [final] ¶#
-
Open a folder
- VfsFolder create() [final] ¶#
-
Create a new folder
- bool exists() [final] ¶#
-
Test to see if a folder exists
- class FtpFolder : VfsFolder ¶#
-
Represents a FTP Folder in full, allowing one to address
specific folders of an FTP File system.
- char[] name() [final] ¶#
-
Return a short name
- char[] toString() [final] ¶#
-
Return a long name
- VfsFile file(char[] path) [final] ¶#
-
Return a contained file representation
- VfsFolderEntry folder(char[] path) [final] ¶#
-
Return a contained folder representation
- VfsFolders self() [final] ¶#
-
Returns a folder set containing only this one. Statistics
are inclusive of entries within this folder only
- VfsFolders tree() [final] ¶#
-
Returns a subtree of folders. Statistics are inclusive of
files within this folder and all others within the tree
- int opApply(int delegate(ref VfsFolder) dg) [final] ¶#
-
Iterate over the set of immediate child folders. This is
useful for reflecting the hierarchy
- VfsFolder clear() [final] ¶#
-
Clear all content from this folder and subordinates
- bool writable() [final] ¶#
-
Is folder writable?
- VfsFolder close(bool commit = true) ¶#
-
Close and/or synchronize changes made to this folder. Each
driver should take advantage of this as appropriate, perhaps
combining multiple files together, or possibly copying to a
remote location
- void verify(VfsFolder folder, bool mounting) ¶#
-
A folder is being added or removed from the hierarchy. Use
this to test for validity (or whatever) and throw exceptions
as necessary
- class FtpFolders : VfsFolders ¶#
-
A set of folders within an FTP file system as was selected by the
Adapter or as was selected at initialization.
- int opApply(int delegate(ref VfsFolder) dg) [final] ¶#
-
Iterate over the set of contained VfsFolder instances
- uint files() [final] ¶#
-
Return the number of files
- uint folders() [final] ¶#
-
Return the number of folders
- uint entries() [final] ¶#
-
Return the total number of entries (files + folders)
- ulong bytes() [final] ¶#
-
Return the total size of contained files
- VfsFolders subset(char[] pattern) [final] ¶#
-
Return a subset of folders matching the given pattern
- VfsFiles catalog(char[] pattern) [final] ¶#
-
Return a set of files matching the given pattern
- VfsFiles catalog(VfsFilter filter = null) [final] ¶#
-
Return a set of files matching the given filter
- class FtpFile : VfsFile ¶#
-
Represents a file over a FTP file system.
- char[] name() [final] ¶#
-
Return a short name
- char[] toString() [final] ¶#
-
Return a long name
- bool exists() [final] ¶#
-
Does this file exist?
- ulong size() [final] ¶#
-
Return the file size
- VfsFile copy(VfsFile source) [final] ¶#
-
Create and copy the given source
- VfsFile move(VfsFile source) [final] ¶#
-
Create and copy the given source, and remove the source
- VfsFile create() [final] ¶#
-
Create a new file instance
- VfsFile create(InputStream stream) [final] ¶#
-
Create a new file instance and populate with stream
- VfsFile remove() [final] ¶#
-
Remove this file
- InputStream input() [final] ¶#
-
Return the input stream. Don't forget to close it
- OutputStream output() [final] ¶#
-
Return the output stream. Don't forget to close it
- VfsFile dup() [final] ¶#
-
Duplicate this entry
- Time mtime() [final] ¶#
-
Time modified
- Time ctime() [final] ¶#
-
Time created
- Time modified() [final] ¶#
-
Modified time of the file
- class FtpFiles : VfsFiles ¶#
-
Represents a selection of Files.
- int opApply(int delegate(ref VfsFile) dg) [final] ¶#
-
Iterate over the set of contained VfsFile instances
- uint files() [final] ¶#
-
Return the total number of entries
- ulong bytes() [final] ¶#
-
Return the total size of all files