|
@@ -20,6 +20,31 @@ namespace HyperCube.Pages
|
|
|
// public string Smart { get; set; }
|
|
|
//}
|
|
|
|
|
|
+ public string getFiles()
|
|
|
+ {
|
|
|
+ string sourceDirectory = @"c:\Users\Администратор\AppData\Local\Ethereum\rinkeby\keystore\";
|
|
|
+ string toprint = "";
|
|
|
+ var files = Directory.GetFiles(sourceDirectory);
|
|
|
|
|
|
+ foreach (var file in files)
|
|
|
+ {
|
|
|
+ string fileName = file.Substring(sourceDirectory.Length + 1);
|
|
|
+ //var name = fileName.Split("_");
|
|
|
+ try
|
|
|
+ {
|
|
|
+ Console.WriteLine($"fileName {fileName}");
|
|
|
+ //uint fileTaskId = Convert.ToUInt32(name[0]);
|
|
|
+ //if (fileTaskId == taskid)
|
|
|
+ //{
|
|
|
+ // toprint += fileName + ",";
|
|
|
+ //}
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ Console.WriteLine($"Exception file {fileName}: {e.Message}");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return toprint;
|
|
|
+ }
|
|
|
}
|
|
|
}
|