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 7768439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:54:51+00:00 2026-06-01T15:54:51+00:00

I have been looking into libraries for a file system that will allow path

  • 0

I have been looking into libraries for a file system that will allow path mounting on purely an application level. This may not be called just “path mounting” since that has the connotation of os level path mounting, but something else, I am not sure of the terminology. I was hoping to be able to find a few but were unable to find anything to what I am looking for (boost::filesystem was the closest I found). I wanted to be able to compare several different libraries in hopes of seeing what advantages and disadvantages they have.

What I mean by a file system with path mounting is so I would have a path such as

"SomeRoot:data\file.txt"

and the "SomeRoot" would be replaced with C:\SomeFolder", which would be set to the file mount system.

Does anyone know of a file system that will allow path mounting?

Edit:

Since it appears that there may not be many libraries for this, I would also be interested in how to construct one properly.

  • 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-06-01T15:54:52+00:00Added an answer on June 1, 2026 at 3:54 pm

    If you are looking for an “application level file system” then at the most basic level, you are going to need to do a string replace. On the most basic level there are two strings

    MountPoint
    Which will be used as the “mount point”, such as your SomeRoot.

    MountResolve
    Which is the location to what mount point is pointed at for when “resolving” a file location. This is the same as your C:\SomeFolder.

    Besides for the obvious accessor and getters for those variables, there is the need for a function to resolve the path, which is this case can be

    bool ResolvePath(const String& mountPath, String& resolvedPath);

    The contents of the ResolvePath are very simple, all you need to do is replace the current MountPoint string in mountPath and place the result into resolvedPath.

    resolvedPath = mountPath;
    resolvedPath.replace(0, mMountPoint.size() + 1, mMountResolve.c_str(), mMountResolve.size());
    

    However, there is more that can be done in that function. The reason why I have it returning a bool is because the function should fail mountPath does not have the MountPoint. To check, just do a simple string::find.

    if(mountPath.find(mMountPoint) == String::npos)
        return false;
    

    With this, you can now resolve SomeRoot:data\file.txt to C:\SomeFolder\data\file.txt if MountResolve is set to C:\SomeFolder\. However, you mentioned without the trailing slash at the end. Since there is nothing to be currently done to verify that slash, your result would be C:\SomeFolderdata\file.txt. This is wrong.

    On your access for setting the mount resolve, you want to check to see if there is there is a trailing folder slash. If there is not, then add it.

    void FileSystem::SetMountResolve(const String& mountResolve)
    {
        mMountResolve = mountResolve;
    
        if(*(mMountResolve.end() - 1) != FOLDERSLASH)
            mMountResolve += FOLDERSLASH;
    }
    

    This will allow a basic “FileSystem” class to have one MountPoint/MountResolve. It will not be very difficult to extend this to allow multiple mount points either.

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

Sidebar

Related Questions

I have been looking into packages that would enable me to have tabs in
I have been looking at combining my JavaScript files into one file, to gain
I have been looking into different database libraries for my online card game (PostgreSQL,
I have been looking into CruiseControl configuration recently (I'm a complete CC noob) and
I have been looking into different systems for creating a fast cache in a
I have been looking into MVVM design patterns with WPF for a project. I
I have been looking into HTML5 manifest but I am unclear as to whether
I have been looking into coloring objects like ellipses with code such as SolidBrush
I have been looking into integrating testing into my app based on RequireJS. I
I have been looking into Spring Social Facebook's publish(objectId, connectionName, data) API , but

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.