public LuaScriptFolderInfo(LuaForAGSEditorComponent l4a_component, LuaScriptFolderInfo parent, DirectoryInfo actualDir)
{
this.component = l4a_component;
this.parent = parent;
this.dir = actualDir;
EnsureExistence();
foreach (DirectoryInfo subdir in dir.GetDirectories())
{
// adds self to folders automatically
new LuaScriptFolderInfo(component, this, subdir);
}
foreach (FileInfo file in dir.GetFiles("*.lua"))
{
// adds self to Scripts automatically
new LuaScriptFileInfo(component, this, file);
}
InitFileSystemWatcher();
}