Click or drag to resize
Activsoft.Storage Namespace
The Activsoft.Storage namespace contains the EfficientStorageManager class whose role is to storage a huge number of files by distributing them in subdirectories to avoid having hundreds of thousands of file in one directory (no filesystem likes that, Windows or Unix).
Public classCode exampleEfficientStorageManager

This class provides a simple way to distribute file storage across multiple directories when the accumulation of files would threaten to create hundreds of thousands of files in a single one.

The file paths are determines using the following algorithm:
    With the root path d:\documents\, the number of levels 4, and the number of files per level 500, the path for the 587982 file will be : d:\documents\0\0\0\2\587982_[name]