Open a storage
There exist two ways to open an existing storage:
The first way lets you setup various event handlers and properties before opening the storage. To open the storage
- Create an instance of SolFSStorage class using its Constructor.
- Set FileName property. Optionally set other properties like storage password etc.
- Call Open() method of SolFSStorage class and pass somOpenExisting value as a parameter.
The second way lets you do everything with one call.
Create an instance of SolFSStorage class using its Constructor.
This constructor doesn't let you specify the password for encrypted storage, though.
After you have opened the storage, it is a good idea to ensure that the storage doesn't require the Check And Repair routine to be peformed.
To do this, check IsCorrupted property of SolFSStorage class.
If IsCorrupted is true, call CheckAndRepair() method of SolFSStorage class
to repair the storage.