Annotation of parser3/tests/157.html, revision 1.3

1.3     ! misha       1: $sFrom[157.html]
        !             2: $sCopy[newdir1/157.copy]
        !             3: $sMove[newdir2/157.move]
1.1       misha       4: ^try{
1.3     ! misha       5:        Copying file:
        !             6:        ^file:copy[$sFrom;$sCopy]
        !             7:        ^if(-f $sCopy){
1.1       misha       8:                ok.
                      9:        }{
                     10:                no copy errors but target file doesn't exist.
                     11:        }
                     12: }{
                     13:        failed.
                     14:        $exception.handled(1)
1.3     ! misha      15: }
        !            16: <br />
        !            17: 
        !            18: ^if(-f $sCopy){
        !            19:        Moving file:
        !            20:        ^try{
        !            21:                ^file:move[$sCopy;$sMove]
        !            22:                ^if(-f $sMove){
        !            23:                        ^if(-d ^file:dirname[$sCopy]){
        !            24:                                moving ok but source dir still exist.
        !            25:                        }{
        !            26:                                ok.
        !            27:                        }
        !            28:                        ^file:delete[$sMove]
        !            29:                }{
        !            30:                        no move errors but target file doesn't exist.
        !            31:                }
        !            32:        }{
        !            33:                failed.
        !            34:                $exception.handled(1)
        !            35:        }
        !            36: }

E-mail: