move($fullpath, "$cwd/$targetdir/$filename"); # <- or die "Could not move '$filename' zu '$cwd/$targetdir/':$!";