Buen dia, he generado un scrapper para descargar un archivo, y he estado siguiendo una guía para descomprimir dicho archivo, pero ahora tengo el error del titulo y no se porque se deba. he tratado de buscar si es acaso como declaro las clases, si son estaticos. muestro la estructura en una imagen:
y el código donde me marca error:
string getyear = DateTime.Now.Year.ToString();
string getmonth = DateTime.Now.Month.ToString();
string getday = DateTime.Now.Day.ToString();
name = "PTI151101TE5_" + getyear + getmonth + getday;// +
string path = "C:\\Users\\Monster\\Downloads";
if (Directory.Exists(path)) //we check if the directory or folder exists
{
bool result = CheckFile(name); // boolean result true or false is stored after checking the zip file name
if (result == true)
{
ExtractFiles();// if the zip file is present , this method is called to extract files within the zip file
}
else
{
// if the zip file is not present, then the test fails
}
}
else
{
//if the directory or folder does not exist, then the test fails
}