if (-f $dir) { changesize ($dir ... } else { # do the loop