Hide the preload path from the dlog (#229)
author최종헌/Common Platform Lab(SR)/Engineer/삼성전자 <j-h.choi@samsung.com>
Mon, 11 May 2020 00:46:23 +0000 (09:46 +0900)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Mon, 11 May 2020 00:46:23 +0000 (09:46 +0900)
Change-Id: Ie3cfb0f8b17d12d238921ff03b2e1f02bad7f7f9

Managed/Tizen.Runtime/Preloader.cs

index 9965caf..f523fc1 100644 (file)
@@ -30,12 +30,13 @@ namespace Tizen.Runtime
             Array.Sort(paths);
             foreach (string path in paths)
             {
+                string fileName = Path.GetFileName(path);
                 // ex) Tizen.preload / 0A.Tizen.preload / A0.Tizen.preload / .0.Tizen.preload / .00.Tizen.preload
-                if (!char.IsNumber(Path.GetFileName(path), 0) || !char.IsNumber(Path.GetFileName(path), 1))
+                if (!char.IsNumber(fileName, 0) || !char.IsNumber(fileName, 1))
                     continue;
 
                 // ex) 000.Tizen.preload / 0.Tizen.preload
-                if (Path.GetFileName(path).IndexOf('.') != 2)
+                if (fileName.IndexOf('.') != 2)
                     continue;
 
                 try
@@ -95,7 +96,7 @@ namespace Tizen.Runtime
                 }
                 finally
                 {
-                    Console.WriteLine("Success to preload : " + path);
+                    Console.WriteLine("Success to preload : " + fileName);
                 }
             }