add interrupt support while cpdir and rmdir