public enPathType PathIs(IActivityIOPath path)
{
enPathType result = enPathType.File;
if (path.Path.StartsWith("\\\\"))
{
if (Dev2ActivityIOPathUtils.IsDirectory(path.Path))
{
result = enPathType.Directory;
}
}
else
{
// && FileExist(path)
if (FileExist(path) || DirectoryExist(path))
{
if (!Dev2ActivityIOPathUtils.IsStarWildCard(path.Path))
{
FileAttributes fa = File.GetAttributes(path.Path);
if ((fa & FileAttributes.Directory) == FileAttributes.Directory)
{
result = enPathType.Directory;
}
}
}
else
{
if (Dev2ActivityIOPathUtils.IsDirectory(path.Path))
{
result = enPathType.Directory;
}
}
}
return result;
}