Exemple #1
0
        public FileIndexBase CreateFileIndex(string uopFile, int length, bool hasExtra, string extension)
        {
            uopFile = GetPath(uopFile);

            FileIndexBase fileIndex = new UopFileIndex(uopFile, length, hasExtra, extension);

            if (!fileIndex.FilesExist)
            {
                Tracer.Warn("FileIndex was created but {0} was missing from {1}", Path.GetFileName(uopFile), Directory);
            }

            fileIndex.Open();

            return(fileIndex);
        }
        public FileIndexBase CreateFileIndex(string uopFile, int length, bool hasExtra, string extension)
        {
            uopFile = GetPath(uopFile);

            FileIndexBase fileIndex = new UopFileIndex(uopFile, length, hasExtra, extension);

            if (!fileIndex.FilesExist)
            {
                Tracer.Warn(
                    "FileIndex was created but {0} was missing from {1}",
                    Path.GetFileName(uopFile), Directory);
            }

            fileIndex.Open();

            return fileIndex;
        }