XapEditor.XapEntry.XapEntry C# (CSharp) Method

XapEntry() public method

public XapEntry ( string d, Xap p, bool dir ) : System
d string
p Xap
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);
        }
    }