Hi all. I have this snip of code:
if (Directory.Exists(@"SD")) { green.Write(true); red.Write(true); //Directory.SetCurrentDirectory(@"SD"); Directory.CreateDirectory(@"SDone"); Thread.Sleep(1); Directory.CreateDirectory(@"SDtwo"); Thread.Sleep(1); Directory.CreateDirectory(@"SDthree"); Thread.Sleep(1); Directory.CreateDirectory(@"SDfour"); Thread.Sleep(1); Directory.CreateDirectory(@"SDfive"); Thread.Sleep(1); Directory.CreateDirectory(@"SDsix"); Thread.Sleep(1); foreach (string dir in Directory.GetDirectories(@"SD")) { Debug.Print("I found: " + dir); } Thread.Sleep(100); green.Write(false); red.Write(false); }
The debug output is:
I found: SDoneI found: SDtwoI found: SDthreeI found: SDfourI found: SDfiveI found: SDsix
But when I put the SD card in my computer, SDsix doesn't exist. What's going on?