Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4008682
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:47:07+00:00 2026-05-20T08:47:07+00:00

If you want to do something with a directory/folder you use System.IO.Directory but if

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:47:08+00:00Added an answer on May 20, 2026 at 8:47 am

    There actually is a difference between a directory and a folder, and both terms are used correctly here.

    A directory is a file system concept. The System.IO.Directory class, along with most of the classes in the System.IO namespace, deals only with the file system, ie. files, directories, and drives. These are sometimes collectively referred to (programmatically or just grammatically) as file system objects, or FSOs.

    A folder, on the other hand, is an operating system concept. More specifically, it’s a Windows shell concept. It’s a higher-level concept than a directory. The Windows shell doesn’t usually deal directly with file system objects. Instead, everything is abstracted as namespace objects. There are two types of namespace objects: folders, which are containers for other namespace objects, and files, which aren’t. (Note that a “file” in the namespace doesn’t necessarily correlate to a file on disk. It could be a virtual object, like a printer.)

    Most namespace objects represent file system objects, but not all of them do. For instance, the Desktop folder is a virtual folder that houses all of the file system objects in %USERPROFILE%\Desktop% as well as the file system objects in %ALLUSERSPROFILE%\Desktop, and a few non-file-system objects like the Recycle Bin, My Computer, etc.

    Like Windows Explorer, the FolderBrowserDialog (which, as Benny almost mentioned, calls SHBrowseForFolder()) presents an abstract view of folders1, not a direct view of the drives and directories of the file system.

    It should also be noted that the System.IO.Directory class is part of the ECMA-spec base class library (BCL), which is intended to be platform-agnostic. Directories exist on virtually every platform. The System.Windows.Forms.FolderBrowserDialog class is not part of the BCL. It’s in the Windows-specific .NET framework, so its designers were free to use Windows concepts, such as the folder2.


    1 On the other hand, the .NET framework doesn’t actually support namespace objects. Although the SHBrowseForFolder() function can return any namespace folder, the FolderBrowserDialog uses the BIF_RETURNONLYFSDIRS flag to restrict returns to only folders that represent file system directories. You can’t use the FolderBrowserDialog to allow the user to choose the Printers folder or the Control Panel folder. Nonetheless, though, it does browse by folder, even if it will only retrieve the path to a directory.

    2 Most modern file browsers borrow the metaphor of folders, representing directories graphically with folder icons, but the abstract concept of folders, as presented here, is a Windows concept that isn’t universally present across platforms.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want something like the following but would like it to be reusable for
I want something like a canvas, but where i'd be able to manipulate pixels
Instead of using a certain jar in my WEB-INF/lib folder, I want to use
I am trying to do something very simple. I want to display an image
Is there any way to set the initial directory of a folder browser dialog
For example, I want to draw something directly to an UIView. I need an
I want something like the following: foo.should_receive(:bar).with(an_instance_of(Bla))..... Is this possible? Edit: According to the
I want something that will receive me the processes details, like I receive with
I want something to put in my .htaccess file that will hide the .php
I want something like this: abcdab.search(/a/g) //return [0,4] Is it possible?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.