using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string[] FILES = System.IO.Directory.GetFiles(@"C:\test", "*", System.IO.SearchOption.AllDirectories);
for (int i = 0; i < FILES.Length; i++ )
{
FILES[i] = System.IO.Path.GetFileName(FILES[i]);
Console.WriteLine(FILES[i]);
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkxpbnE7CnVzaW5nIFN5c3RlbS5UZXh0Owp1c2luZyBTeXN0ZW0uVGhyZWFkaW5nLlRhc2tzOwoKbmFtZXNwYWNlIENvbnNvbGVBcHBsaWNhdGlvbjEKewogICAgY2xhc3MgUHJvZ3JhbQogICAgewogICAgICAgIHN0YXRpYyB2b2lkIE1haW4oc3RyaW5nW10gYXJncykKICAgICAgICB7CiAgICAgICAgICAgIHN0cmluZ1tdIEZJTEVTID0gU3lzdGVtLklPLkRpcmVjdG9yeS5HZXRGaWxlcyhAIkM6XHRlc3QiLCAiKiIsIFN5c3RlbS5JTy5TZWFyY2hPcHRpb24uQWxsRGlyZWN0b3JpZXMpOwogICAgICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IEZJTEVTLkxlbmd0aDsgaSsrICkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgRklMRVNbaV0gPSBTeXN0ZW0uSU8uUGF0aC5HZXRGaWxlTmFtZShGSUxFU1tpXSk7CiAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShGSUxFU1tpXSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9Cn0K