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?
Probably because the team that wrote the System.IO
namespace was not the same team that wrote System.Windows.Forms
.
Maybe because Folder in this case is rather a term of Windows(not only?) user interface than a definition of file system object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With