*** /root/twiki/lib/TWiki/Store.pm 2002/02/08 00:22:50 1.1 --- /root/twiki/lib/TWiki/Store.pm 2002/02/08 00:24:15 1.2 *************** *** 254,263 **** --- 254,269 ---- if( ! move( $oldAttachment, $newAttachment ) ) { $error = "Failed to move attachment; $what ($!)"; return $error; } + if ( -e "$oldAttachment.thumb.jpeg" ) { + move( "$oldAttachment.thumb.jpeg", "$newAttachment.thumb.jpeg" ); + # we just hope that works, if the above works. + # perhaps it's not the end of the world if the thumbnail fails. + } + # Make sure rcs directory exists my $newRcsDir = getFileDir( $newWeb, $newTopic, $theAttachment, ",v" ); if ( ! -e $newRcsDir ) { umask( 0 ); mkdir( $newRcsDir, 0775 );