Esempio n. 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
        }
Esempio n. 2
0
 /// ------------------------------------------------------------------------------------
 public static bool GetCanHaveWrittenTranslationRole(string path)
 {
     return(FileUtils.GetIsText(path) || AnnotationFileType.GetIsAnAnnotationFile(path));
 }
Esempio n. 3
0
 /// ------------------------------------------------------------------------------------
 public static bool GetCanHaveTranscriptionRole(string path)
 {
     return(FileSystemUtils.GetIsAudioVideo(path) || AnnotationFileType.GetIsAnAnnotationFile(path));
 }