public Chunk GetChunk(VFile vfile, int chunkNumber) { //foreach (Chunk c in FileTable[vfile]) { // } return(FileTable[vfile][chunkNumber]); }
/// <summary> /// List the files owned by a particular node /// </summary> /// <returns><ReturnCode>enum indicating status</ReturnCode></returns> private ReturnCode DirectoryList(VFile owner, out List <VFile> vfiles) { vfiles = new List <VFile>(); ReturnCode retc = ReturnCode.None; foreach (VFile vf in FileTable.Keys) { if (vf.OwnerID == owner.FileID) { vfiles.Add(vf); retc = ReturnCode.Success; } } return(retc); }
/// <summary> /// Extract a file from the archive /// </summary> /// <param name="vfile">File to extract</param> /// <param name="destination">Destination folder on physical disk</param> private void ExtractFile(VFile vfile, DirectoryInfo destination) { }
/// <summary> /// Retruns an Info object containing basic information about a file /// </summary> /// <param name="vfile">The vfile to query</param> private void FileInfo(VFile vfile) { }