示例#1
0
        public Chunk GetChunk(VFile vfile, int chunkNumber)
        {
            //foreach (Chunk c in FileTable[vfile]) {
            //    }

            return(FileTable[vfile][chunkNumber]);
        }
示例#2
0
        /// <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);
        }
示例#3
0
 /// <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)
 {
 }
示例#4
0
 /// <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)
 {
 }