Open a storage

There exist two ways to open an existing storage:

  1. The first way lets you setup various event handlers and properties before opening the storage. To open the storage
    1. Create an instance of SolFSStorage class using its Constructor.
    2. Set FileName property. Optionally set other properties like storage password etc.
    3. Call Open() method of SolFSStorage class and pass somOpenExisting value as a parameter.
  2. 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.