title: The name item does not exist in current context
body: <p>I am a beginner in C# and trying to build a code but I am getting an error. You can find the code below:</p>
  <pre><code>string[] sub_directory = Directory.GetDirectories(utils_Analytics);
  foreach (string item in sub_directory) 
  Console.WriteLine(Path.GetFileName(item.Substring(0,item.Length-10)));
  string[] files = Directory.GetFiles(item); 
  </code></pre>