public override bool Parse(string cmd) { var parser = new CmdParser(cmd); switch (parser.Command) { case "exit": fileManager?.Dispose(); return(false); case "gc": GC.Collect(); break; case "close": fileManager?.Dispose(); break; case "make": MakeDatabase(parser); break; case "open": LoadDatabase(parser); break; case "mkdir": CreateDirectory(parser); break; case "deldir": DeleteDirectory(parser); break; case "addfile": AddFile(parser); break; case "addfiles": AddFiles(parser); break; case "delfile": //DeleteFile(parser); break; case "getfiles": GetFiles(parser); break; case "getdirs": GetDirs(parser); break; case "writetofile": WriteTo(parser); break; case "writetodir": WriteToDir(parser); break; case "vacuum": fileManager.DataVacuum(); break; case "save": fileManager.Save(); break; case "trace": Trace(parser); break; } return(true); }