Add feature to ensure the contents of the directory. Note that this feature is inclusive and not exclusive.
In order to make sure that the directory is an exact copy of a source, one needs to remove all contents in it first.