public void Validate(string path)
{
try
{
Directory.Exists(Path.GetDirectoryName(path));
if (File.Exists(path))
{
extension = Path.GetExtension(path);
}
/*
else
{
throw new FileNotFoundException(); // < - robić coś takiego?
}
*/
}
catch (Exception e)
{
throw e;
}
}