public MegaFSHook() { Instance = this; if (NodeList.Count < 1) { NodeList = MegaClient.GetNodes().ToList(); } FilesystemStruct = Flat23dst(NodeList[0]); }
public static void Test_TraceMegaNodes_02(string name, string directory = "/", NodesOptions options = NodesOptions.Default, int limit = 0, bool log = false) { MegaClient megaClient = new MegaClient(); string email, password; if (!GetMegaLogin(name, out email, out password)) { return; } megaClient.Email = email; megaClient.Password = password; megaClient.Login(); TraceNodes(megaClient.GetNodes(directory, options), limit: limit, log: log); }
public static void Ls(string[] parameters, NodesOptions option1, LsOptions option2) { if (parameters.Length > 1) { Trace.WriteLine("syntax error"); return; } if (parameters.Length == 1) { Cd(parameters); } MegaClient megaClient = GetMegaClient(); //NodesOptions options = NodesOptions.Directory | NodesOptions.File; TraceNodes(megaClient.GetNodes(GetMegaEnvironment().GetDirectory(), option1), option1, option2); }
public void RefreshFS() { NodeList = MegaClient.GetNodes().ToList(); FilesystemStruct = Flat23dst(NodeList[0]); }