V
V
Vitaly2014-08-29 09:59:20
Data archiving
Vitaly, 2014-08-29 09:59:20

How to create a virtual file system in C#?

Good afternoon, I am developing a program in which I need to store a certain set of files, there will be too many of them individually and it will be inconvenient, I want to store everything in 1 file. Offhand there are options with a virtual file system, but I did not find a single free more or less working implementation, writing such things from scratch will not work out very reliably. Maybe there are ideas on how best to do it in order to store and work with a bunch of files, but at the same time only 1 is stored on disk?
PS archives like rar or zip are not suitable. to change 1 file, you need to save the entire archive again, which is highly undesirable (files in total can weigh, say, 1-2GB). Yes, and compression as such does not matter because you can compress data at the save stage.
PSS It is desirable that there be a mechanism by which you can access files in the "container" at the thread level.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
G
gleb_kudr, 2014-08-29
@vipuhoff

SQLite.
Two bases. One file for indexes and searches, the second for storing file bodies. There may be problems with multithreading, but everything else is very convenient.

V
Vit, 2014-08-29
@fornit1917

Maybe tar ?

E
Eugene, 2014-08-29
@r4tz52

archives like rar or zip are not suitable

ZIP without compression can be modified without rewriting the entire archive.

S
SilentFl, 2014-08-29
@SilentFl

Try System.IO.Packaging.ZipPackage

3
386DX, 2014-08-29
@386DX

I read about Imgdisk virtual disk + .img, but I didn’t get around to testing it and I’m not sure about the functionality.
UPD. I realized that the question is not about ...

C
CrazyHorse, 2014-09-04
@CrazyHorse

Google broadcasts
https://code.google.com/p/sharpfilesystem/
www.abstractpath.com/platform-virtualfilesystem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question