db4o

Defragment.Defrag Method (String, String)

Renames the file at the given original path to the given backup file and then builds a defragmented version of the file in the original place.

public static void Defrag(
   string origPath,
   string backupPath
);

Parameters

origPath
The path to the file to be defragmented.
backupPath
The path to the backup file to be created.

Remarks

Renames the file at the given original path to the given backup file and then builds a defragmented version of the file in the original place.

Exceptions

Exception Type Condition
IOException if the original file cannot be moved to the backup location

See Also

Defragment Class | Db4objects.Db4o.Defragment Namespace | Defragment.Defrag Overload List