basic framework for moving files alternately from one dir to another