fix(flop) copy: add directory check