配列を使用して取得したディレクトリ ツリーの 2 番目から最後のレベルを取得しようとしています。Console.WriteLine 部分に到達すると、何も表示されず、その行全体がスキップされるようです。
foreach (string file in files)
{
string thepathoflife = Path.GetFullPath(file);
string filetocopy = file;
string location = file;
bool b = false;
string extension = Path.GetExtension(file);
string thenameofdoom = Path.GetFileNameWithoutExtension(file);
string filename = Path.GetFileName(file);
//here is my attempt
string dirthing = Path.GetDirectoryName(filename); //here is my attempt
System.Console.WriteLine("" + dirthing); //here is my attempt