Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where is "g:Tile 11" directory created?

Tags:

c#

.net

I created a directory using system.io with path "g:Tile 11", I purposely did not put backslash , I was expecting that an error will be thrown, but directory is created and I can save more content in it and can also read this directory through code, But I am not able to find it in windows file explorer. Does anyone know where are such files saved and how to read it in windows file explorer ?

Note: Its important that the g drive is available else it throws error

like image 278
Shivam cv Avatar asked Sep 29 '22 22:09

Shivam cv


1 Answers

Well, it seems when testing it with this:

DirectoryInfo d = Directory.CreateDirectory("c:Tile 11");

It does work. It just seems to strip off the c: from the path and create a Tile 11 folder inside the Debug folder. (Check d.FullName to get the actual path)

like image 64
Patrick Hofman Avatar answered Oct 03 '22 04:10

Patrick Hofman