public XapEntry ( string d, |
||
d | string | |
p | ||
dir | bool | |
return | System |
public XapEntry(string d, Xap p, bool dir)
{
root = d;
IsFolder = dir;
if (dir)
{
Name = root.Substring(p.Root.Length + 1).Replace("\\", "/");
return;
}
else Name = Path.GetFileName(root);
Extension = Path.GetExtension(root).Substring(1);
}
}