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