IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5340


Ignore:
Timestamp:
Oct 14, 2005, 2:41:20 PM (21 years ago)
Author:
jhoblitt
Message:

change get_file() to remove files with the incorrect size/md5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PSFTP/lib/PS/IPP/PSFTP.pm

    r5326 r5340  
    11# Copyright (C) 2005  Joshua Hoblitt
    22#
    3 # $Id: PSFTP.pm,v 1.8 2005-10-14 02:35:42 jhoblitt Exp $
     3# $Id: PSFTP.pm,v 1.9 2005-10-15 00:41:20 jhoblitt Exp $
    44
    55package PS::IPP::PSFTP;
     
    182182        my $size = stat($p{filename})->size;
    183183        if (! $p{size} == $size) {
     184            unlink $p{filename};
    184185            carp "url: ", $p{url},
    185186                 " - expected size: ", $p{size},
     
    192193        my $md5 = file_md5_hex($p{filename});
    193194        if (! $p{md5} eq $md5) {
     195            unlink $p{filename};
    194196            carp "url: ", $p{url},
    195197                 " - expected md5: ", $p{md5},
Note: See TracChangeset for help on using the changeset viewer.