public static bool IsSerializedFile(string filePath) { using (Stream stream = MultiFileStream.OpenRead(filePath)) { return(IsSerializedFile(stream)); } }
public static bool IsWebFile(string webPath) { using (Stream stream = MultiFileStream.OpenRead(webPath)) { return(IsWebFile(stream)); } }
public static BundleFileScheme LoadScheme(string filePath) { string fileName = Path.GetFileNameWithoutExtension(filePath); using (Stream stream = MultiFileStream.OpenRead(filePath)) { return(ReadScheme(stream, filePath, fileName)); } }
public static bool IsBundleFile(string filePath) { if (!MultiFileStream.Exists(filePath)) { throw new Exception($"Bundle at path '{filePath}' doesn't exist"); } using (Stream stream = MultiFileStream.OpenRead(filePath)) { return(IsBundleFile(stream)); } }
public static bool IsWebFile(string webPath) { if (!MultiFileStream.Exists(webPath)) { throw new Exception($"Web at path '{webPath}' doesn't exist"); } using (Stream stream = MultiFileStream.OpenRead(webPath)) { return(IsWebFile(stream)); } }