Ejemplo n.º 1
0
        public static bool Exists(string path)
        {
            string packagePath, localPath;

            UnifiedPath.ParsePath(path, out packagePath, out localPath);

            if (packagePath == null)
            {
                return(File.Exists(localPath));
            }

            return(PackageStream.IsFileExisted(packagePath, localPath));
        }
Ejemplo n.º 2
0
        public static Stream OpenRead(string path)
        {
            string packagePath, localPath;

            UnifiedPath.ParsePath(path, out packagePath, out localPath);

            if (packagePath == null)
            {
                return(File.OpenRead(localPath));
            }

            return(new PackageStream(packagePath, localPath));
        }