Example #1
0
 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));
     }
 }
Example #3
0
        public static BundleFileScheme LoadScheme(string filePath)
        {
            string fileName = Path.GetFileNameWithoutExtension(filePath);

            using (Stream stream = MultiFileStream.OpenRead(filePath))
            {
                return(ReadScheme(stream, filePath, fileName));
            }
        }
Example #4
0
        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));
            }
        }
Example #5
0
        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));
            }
        }