Esempio n. 1
0
        /// <summary>
        /// Returns all files in use by this segment. </summary>
        public virtual ICollection <string> GetFiles()
        {
            // Start from the wrapped info's files:
            ISet <string> files = new JCG.HashSet <string>(Info.GetFiles());

            // TODO we could rely on TrackingDir.getCreatedFiles() (like we do for
            // updates) and then maybe even be able to remove LiveDocsFormat.files().

            // Must separately add any live docs files:
            Info.Codec.LiveDocsFormat.Files(this, files);

            // Must separately add any field updates files
            foreach (ISet <string> updateFiles in genUpdatesFiles.Values)
            {
                files.UnionWith(updateFiles);
            }

            return(files);
        }