using System.Collections.Generic; using System.IO; using BinaryObjectScanner.Interfaces; namespace BinaryObjectScanner.Protection { // TODO: Figure out how to use path check framework here public class ProtectDVDVideo : IPathCheck { /// public List CheckDirectoryPath(string path, List? files) { var protections = new List(); if (files == null) return protections; if (Directory.Exists(Path.Combine(path, "VIDEO_TS"))) { var ifofiles = files.FindAll(s => s.EndsWith(".ifo")); for (int i = 0; i < ifofiles.Count; i++) { var ifofile = new FileInfo(ifofiles[i]); if (ifofile.Length == 0) { protections.Add("Protect DVD-Video (Unconfirmed - Please report to us on Github)"); break; } } } return protections; } /// public string? CheckFilePath(string path) { return null; } } }