Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>I have been looking into libraries for a file system that will allow path mounting</p> </blockquote> <p>You should forget about it. mounting a path/drive can be blocked on linux (administrator privilegies might be required), and on windows there is no built-in mechanism for that (there are directory junctions, though). On certain distros you have to be root to mount even cdrom drive. Manually.</p> <blockquote> <p>Does anyone know of a file system that will allow path mounting?</p> </blockquote> <p>ntfs, ext3, jfs. Operation might require root/administrator privilegies. </p> <blockquote> <p>and the "SomeRoot" would be replaced with C:\SomeFolder"</p> </blockquote> <p>You need to use something similar to environmental variables in your program. Use "${SomeDir}/path" and replace ${SomeDir} with whatever you want. That'll be much easier to implement than mounting.</p> <p>--EDIT--</p> <blockquote> <p>What I mean by a file system with path mounting is so I would have a path such as "SomeRoot:data\file.txt"</p> </blockquote> <p>Provide custom wrapper for fopen or whatever you use instead. Or make custom class that implements "File". In that class/wrapper add support for "mounting" by doing search/replace on provided file path - possibly using collection of variables stored within the program. That's the easiest solution. Of course, you'll also have to wrap other file functions you'll use, but that's still much easier than doing cross-platform mounting.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload