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
}
finally
{
- Console.WriteLine("Success to preload : " + path);
+ Console.WriteLine("Success to preload : " + fileName);
}
}