FileListTransfer Overview |
Send and receive file(s) more easily The FileListTransfer plugin is designed to send a list of files that have been read into the FileList class. It is similar to the DirectoryDeltaTransfer plugin, except that it doesn't send deltas based on pre-existing files or actually write the files to disk. It solely handles the networking part of sending files. Usage:
|
FileList Overview |
The FileList class stores a list of files and data, and also contains utility functions for dealing with the harddrive in general. It was originally written for the Autopatcher, but can be used for your own purposes as well. See FileList.h for a complete description of all functions and parameters. /// Add all the files at a given directory. /// Deallocate all memory /// Write all encoded data into a bitstream /// Read all encoded data from a bitstream. Clear() is called before deserializing. /// Given the existing set of files, search applicationDirectory for the same files. /// Return the files that need to be written to make \a input match this current FileList. /// Assuming FileList contains a list of filenames presumably without data, read the data for these filenames /// Write all files to disk, prefixing the paths with applicationDirectory /// Add a file, given data already in memory /// Add a file, reading it from disk /// Delete all files stored in the file list |
See Also |