示例#1
0
        /// ------------------------------------------------------------------------------------
        public bool GetShowAsNormalComponentFile(string filePath)
        {
            var path = filePath.ToLower();

            return
                (!path.EndsWith("." + ExtensionWithoutPeriod) &&
                 !path.EndsWith(Settings.Default.MetadataFileExtension) &&
                 !path.EndsWith("thumbs.db") &&
                 !path.EndsWith(".pfsx") &&
                 !path.EndsWith(Settings.Default.OralAnnotationGeneratedFileSuffix.ToLower()) &&
                 !AnnotationFileType.GetIsAnAnnotationFile(filePath) &&
                 !Path.GetFileName(path).StartsWith("."));               //these are normally hidden
        }
示例#2
0
 /// ------------------------------------------------------------------------------------
 public static bool GetCanHaveWrittenTranslationRole(string path)
 {
     return(FileUtils.GetIsText(path) || AnnotationFileType.GetIsAnAnnotationFile(path));
 }
示例#3
0
 /// ------------------------------------------------------------------------------------
 public static bool GetCanHaveTranscriptionRole(string path)
 {
     return(FileSystemUtils.GetIsAudioVideo(path) || AnnotationFileType.GetIsAnAnnotationFile(path));
 }