Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is .NET inconstent in calling directories "Directory" and "Folder"?

Tags:

.net

If you want to do something with a directory/folder you use System.IO.Directory but if you want to display a dialog for browsing one you use FolderBrowserDialog?

Why is one named Directory and the other Folder?

like image 230
Peter Avatar asked Nov 29 '22 12:11

Peter


2 Answers

Probably because the team that wrote the System.IO namespace was not the same team that wrote System.Windows.Forms.

like image 59
Ian Kemp Avatar answered Jan 12 '23 04:01

Ian Kemp


Maybe because Folder in this case is rather a term of Windows(not only?) user interface than a definition of file system object.

like image 22
macropas Avatar answered Jan 12 '23 05:01

macropas