Beispiel #1
0
        public FileIndexBase CreateFileIndex(string idxFile, string mulFile)
        {
            idxFile = GetPath(idxFile);
            mulFile = GetPath(mulFile);

            FileIndexBase fileIndex = new MulFileIndex(idxFile, mulFile);

            if (!fileIndex.FilesExist)
            {
                Tracer.Warn(
                    "FileIndex was created but 1 or more files do not exist.  Either {0} or {1} were missing from {2}",
                    Path.GetFileName(idxFile),
                    Path.GetFileName(mulFile), Directory);
            }

            fileIndex.Open();

            return(fileIndex);
        }
        public FileIndexBase CreateFileIndex(string idxFile, string mulFile)
        {
            idxFile = GetPath(idxFile);
            mulFile = GetPath(mulFile);

            FileIndexBase fileIndex = new MulFileIndex(idxFile, mulFile);

            if (!fileIndex.FilesExist)
            {
                Tracer.Warn(
                    "FileIndex was created but 1 or more files do not exist.  Either {0} or {1} were missing from {2}",
                    Path.GetFileName(idxFile),
                    Path.GetFileName(mulFile), Directory);
            }

            fileIndex.Open();

            return fileIndex;
        }