ofs | hex dump | ascii |
---|
0000 | 2d 2d 54 45 53 54 2d 2d 0a 54 65 73 74 20 63 6f 70 79 28 29 20 66 75 6e 63 74 69 6f 6e 3a 20 75 | --TEST--.Test.copy().function:.u |
0020 | 73 61 67 65 20 76 61 72 69 61 74 69 6f 6e 73 20 2d 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 | sage.variations.-.destination.fi |
0040 | 6c 65 20 6e 61 6d 65 73 28 65 6d 70 74 79 20 73 74 72 69 6e 67 2c 20 6e 75 6c 6c 73 20 26 20 62 | le.names(empty.string,.nulls.&.b |
0060 | 6f 6f 6c 73 29 0a 2d 2d 53 4b 49 50 49 46 2d 2d 0a 3c 3f 70 68 70 0a 69 66 28 73 75 62 73 74 72 | ools).--SKIPIF--.<?php.if(substr |
0080 | 28 50 48 50 5f 4f 53 2c 20 30 2c 20 33 29 20 21 3d 20 22 57 49 4e 22 29 0a 20 20 64 69 65 28 22 | (PHP_OS,.0,.3).!=."WIN")...die(" |
00a0 | 73 6b 69 70 20 52 75 6e 20 6f 6e 6c 79 20 6f 6e 20 57 69 6e 64 6f 77 73 22 29 3b 0a 3f 3e 0a 2d | skip.Run.only.on.Windows");.?>.- |
00c0 | 2d 46 49 4c 45 2d 2d 0a 3c 3f 70 68 70 0a 2f 2a 20 50 72 6f 74 6f 74 79 70 65 3a 20 62 6f 6f 6c | -FILE--.<?php./*.Prototype:.bool |
00e0 | 20 63 6f 70 79 20 28 20 73 74 72 69 6e 67 20 24 73 6f 75 72 63 65 2c 20 73 74 72 69 6e 67 20 24 | .copy.(.string.$source,.string.$ |
0100 | 64 65 73 74 20 29 3b 0a 20 20 20 44 65 73 63 72 69 70 74 69 6f 6e 3a 20 4d 61 6b 65 73 20 61 20 | dest.);....Description:.Makes.a. |
0120 | 63 6f 70 79 20 6f 66 20 74 68 65 20 66 69 6c 65 20 73 6f 75 72 63 65 20 74 6f 20 64 65 73 74 2e | copy.of.the.file.source.to.dest. |
0140 | 0a 20 20 20 20 20 52 65 74 75 72 6e 73 20 54 52 55 45 20 6f 6e 20 73 75 63 63 65 73 73 20 6f 72 | ......Returns.TRUE.on.success.or |
0160 | 20 46 41 4c 53 45 20 6f 6e 20 66 61 69 6c 75 72 65 2e 0a 2a 2f 0a 0a 2f 2a 20 54 65 73 74 20 63 | .FALSE.on.failure..*/../*.Test.c |
0180 | 6f 70 79 28 29 20 66 75 6e 63 74 69 6f 6e 3a 20 49 6e 20 63 72 65 61 74 69 6f 6e 20 6f 66 20 64 | opy().function:.In.creation.of.d |
01a0 | 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 73 20 77 69 74 68 20 65 6d 70 74 79 | estination.file.names.with.empty |
01c0 | 20 73 74 72 69 6e 67 2c 20 6e 75 6c 6c 73 20 26 20 62 6f 6f 6c 73 20 0a 20 20 20 20 20 61 6e 64 | .string,.nulls.&.bools.......and |
01e0 | 20 63 68 65 63 6b 69 6e 67 20 74 68 65 20 65 78 69 73 74 65 6e 63 65 20 61 6e 64 20 73 69 7a 65 | .checking.the.existence.and.size |
0200 | 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 73 0a 2a 2f 0a 0a 65 63 68 6f 20 22 | .of.destination.files.*/..echo." |
0220 | 2a 2a 2a 20 54 65 73 74 20 63 6f 70 79 28 29 20 66 75 6e 63 74 69 6f 6e 3a 20 64 65 73 74 69 6e | ***.Test.copy().function:.destin |
0240 | 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 73 20 77 69 74 68 20 65 6d 70 74 79 20 73 74 72 69 | ation.file.names.with.empty.stri |
0260 | 6e 67 2c 20 6e 75 6c 6c 73 20 26 20 62 6f 6f 6c 73 20 2a 2a 2a 5c 6e 22 3b 0a 24 66 69 6c 65 5f | ng,.nulls.&.bools.***\n";.$file_ |
0280 | 70 61 74 68 20 3d 20 64 69 72 6e 61 6d 65 28 5f 5f 46 49 4c 45 5f 5f 29 3b 0a 24 73 72 63 5f 66 | path.=.dirname(__FILE__);.$src_f |
02a0 | 69 6c 65 5f 6e 61 6d 65 20 3d 20 24 66 69 6c 65 5f 70 61 74 68 2e 22 2f 63 6f 70 79 5f 76 61 72 | ile_name.=.$file_path."/copy_var |
02c0 | 69 61 74 69 6f 6e 34 2e 74 6d 70 22 3b 0a 24 66 69 6c 65 5f 68 61 6e 64 6c 65 20 3d 20 66 6f 70 | iation4.tmp";.$file_handle.=.fop |
02e0 | 65 6e 28 24 73 72 63 5f 66 69 6c 65 5f 6e 61 6d 65 2c 20 22 77 22 29 3b 0a 66 77 72 69 74 65 28 | en($src_file_name,."w");.fwrite( |
0300 | 20 24 66 69 6c 65 5f 68 61 6e 64 6c 65 2c 20 73 74 72 5f 72 65 70 65 61 74 28 62 22 48 65 6c 6c | .$file_handle,.str_repeat(b"Hell |
0320 | 6f 32 57 6f 72 6c 64 2e 2e 2e 5c 6e 22 2c 20 31 30 30 29 20 29 3b 0a 66 63 6c 6f 73 65 28 24 66 | o2World...\n",.100).);.fclose($f |
0340 | 69 6c 65 5f 68 61 6e 64 6c 65 29 3b 0a 0a 2f 2a 20 61 72 72 61 79 20 6f 66 20 64 65 73 74 69 6e | ile_handle);../*.array.of.destin |
0360 | 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 73 20 2a 2f 0a 24 64 65 73 74 5f 66 69 6c 65 73 20 | ation.file.names.*/.$dest_files. |
0380 | 3d 20 61 72 72 61 79 28 0a 0a 20 20 2f 2a 20 46 69 6c 65 20 6e 61 6d 65 73 20 63 6f 6e 74 61 69 | =.array(..../*.File.names.contai |
03a0 | 6e 69 6e 67 28 6f 72 20 77 69 74 68 29 20 6e 75 6c 6c 73 20 2a 2f 0a 20 20 22 22 2c 20 0a 20 20 | ning(or.with).nulls.*/..."",.... |
03c0 | 4e 55 4c 4c 2c 0a 20 20 22 5c 30 22 2c 0a 20 20 46 41 4c 53 45 2c 0a 20 20 66 61 6c 73 65 2c 0a | NULL,..."\0",...FALSE,...false,. |
03e0 | 20 20 54 52 55 45 2c 0a 20 20 74 72 75 65 0a 29 3b 0a 0a 65 63 68 6f 20 22 53 69 7a 65 20 6f 66 | ..TRUE,...true.);..echo."Size.of |
0400 | 20 74 68 65 20 73 6f 75 72 63 65 20 66 69 6c 65 20 62 65 66 6f 72 65 20 63 6f 70 79 20 6f 70 65 | .the.source.file.before.copy.ope |
0420 | 72 61 74 69 6f 6e 20 3d 3e 20 22 3b 0a 76 61 72 5f 64 75 6d 70 28 20 66 69 6c 65 73 69 7a 65 28 | ration.=>.";.var_dump(.filesize( |
0440 | 24 73 72 63 5f 66 69 6c 65 5f 6e 61 6d 65 29 20 29 3b 0a 63 6c 65 61 72 73 74 61 74 63 61 63 68 | $src_file_name).);.clearstatcach |
0460 | 65 28 29 3b 0a 0a 65 63 68 6f 20 22 5c 6e 2d 2d 20 4e 6f 77 20 61 70 70 6c 79 69 6e 67 20 63 6f | e();..echo."\n--.Now.applying.co |
0480 | 70 79 28 29 20 6f 6e 20 73 6f 75 72 63 65 20 66 69 6c 65 20 74 6f 20 63 72 65 61 74 65 20 63 6f | py().on.source.file.to.create.co |
04a0 | 70 69 65 73 20 2d 2d 22 3b 0a 24 63 6f 75 6e 74 20 3d 20 31 3b 0a 66 6f 72 65 61 63 68 28 24 64 | pies.--";.$count.=.1;.foreach($d |
04c0 | 65 73 74 5f 66 69 6c 65 73 20 61 73 20 24 64 65 73 74 5f 66 69 6c 65 29 20 7b 0a 20 20 65 63 68 | est_files.as.$dest_file).{...ech |
04e0 | 6f 20 22 5c 6e 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 24 63 6f 75 6e 74 20 2d 2d 5c 6e 22 3b 0a | o."\n--.Iteration.$count.--\n";. |
0500 | 20 20 24 64 65 73 74 5f 66 69 6c 65 5f 6e 61 6d 65 20 3d 20 24 66 69 6c 65 5f 70 61 74 68 2e 22 | ..$dest_file_name.=.$file_path." |
0520 | 2f 24 64 65 73 74 5f 66 69 6c 65 22 3b 0a 0a 20 20 65 63 68 6f 20 22 45 78 69 73 74 65 6e 63 65 | /$dest_file";....echo."Existence |
0540 | 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 62 65 66 6f 72 65 20 63 6f 70 79 | .of.destination.file.before.copy |
0560 | 20 3d 3e 20 22 3b 0a 20 20 76 61 72 5f 64 75 6d 70 28 20 66 69 6c 65 5f 65 78 69 73 74 73 28 24 | .=>.";...var_dump(.file_exists($ |
0580 | 64 65 73 74 5f 66 69 6c 65 5f 6e 61 6d 65 29 20 29 3b 0a 0a 20 20 65 63 68 6f 20 22 43 6f 70 79 | dest_file_name).);....echo."Copy |
05a0 | 20 6f 70 65 72 61 74 69 6f 6e 20 3d 3e 20 22 3b 0a 20 20 76 61 72 5f 64 75 6d 70 28 20 63 6f 70 | .operation.=>.";...var_dump(.cop |
05c0 | 79 28 24 73 72 63 5f 66 69 6c 65 5f 6e 61 6d 65 2c 20 24 64 65 73 74 5f 66 69 6c 65 5f 6e 61 6d | y($src_file_name,.$dest_file_nam |
05e0 | 65 29 20 29 3b 0a 0a 20 20 65 63 68 6f 20 22 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 | e).);....echo."Existence.of.dest |
0600 | 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 22 3b 0a 20 20 76 61 72 5f 64 75 6d 70 28 20 66 | ination.file.=>.";...var_dump(.f |
0620 | 69 6c 65 5f 65 78 69 73 74 73 28 24 64 65 73 74 5f 66 69 6c 65 5f 6e 61 6d 65 29 20 29 3b 0a 0a | ile_exists($dest_file_name).);.. |
0640 | 20 20 69 66 28 20 66 69 6c 65 5f 65 78 69 73 74 73 28 24 64 65 73 74 5f 66 69 6c 65 5f 6e 61 6d | ..if(.file_exists($dest_file_nam |
0660 | 65 29 20 29 20 7b 0a 20 20 20 20 65 63 68 6f 20 22 44 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c | e).).{.....echo."Destination.fil |
0680 | 65 20 6e 61 6d 65 20 3d 3e 20 22 3b 0a 20 20 20 20 70 72 69 6e 74 28 24 64 65 73 74 5f 66 69 6c | e.name.=>.";.....print($dest_fil |
06a0 | 65 5f 6e 61 6d 65 29 3b 0a 20 20 20 20 65 63 68 6f 20 22 5c 6e 22 3b 0a 0a 20 20 20 20 65 63 68 | e_name);.....echo."\n";......ech |
06c0 | 6f 20 22 53 69 7a 65 20 6f 66 20 73 6f 75 72 63 65 20 66 69 6c 65 20 3d 3e 20 22 3b 0a 20 20 20 | o."Size.of.source.file.=>.";.... |
06e0 | 20 76 61 72 5f 64 75 6d 70 28 20 66 69 6c 65 73 69 7a 65 28 24 73 72 63 5f 66 69 6c 65 5f 6e 61 | .var_dump(.filesize($src_file_na |
0700 | 6d 65 29 20 29 3b 0a 20 20 20 20 63 6c 65 61 72 73 74 61 74 63 61 63 68 65 28 29 3b 0a 0a 20 20 | me).);.....clearstatcache();.... |
0720 | 20 20 65 63 68 6f 20 22 53 69 7a 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 | ..echo."Size.of.destination.file |
0740 | 20 3d 3e 20 22 3b 0a 20 20 20 20 76 61 72 5f 64 75 6d 70 28 20 66 69 6c 65 73 69 7a 65 28 24 64 | .=>.";.....var_dump(.filesize($d |
0760 | 65 73 74 5f 66 69 6c 65 5f 6e 61 6d 65 29 20 29 3b 0a 20 20 20 20 63 6c 65 61 72 73 74 61 74 63 | est_file_name).);.....clearstatc |
0780 | 61 63 68 65 28 29 3b 0a 20 20 0a 20 20 20 20 75 6e 6c 69 6e 6b 28 24 64 65 73 74 5f 66 69 6c 65 | ache();........unlink($dest_file |
07a0 | 5f 6e 61 6d 65 29 3b 0a 20 20 7d 0a 0a 20 20 24 63 6f 75 6e 74 2b 2b 3b 0a 0a 7d 0a 0a 65 63 68 | _name);...}....$count++;..}..ech |
07c0 | 6f 20 22 2a 2a 2a 20 44 6f 6e 65 20 2a 2a 2a 5c 6e 22 3b 0a 3f 3e 0a 0a 2d 2d 43 4c 45 41 4e 2d | o."***.Done.***\n";.?>..--CLEAN- |
07e0 | 2d 0a 3c 3f 70 68 70 0a 75 6e 6c 69 6e 6b 28 64 69 72 6e 61 6d 65 28 5f 5f 46 49 4c 45 5f 5f 29 | -.<?php.unlink(dirname(__FILE__) |
0800 | 2e 22 2f 63 6f 70 79 5f 76 61 72 69 61 74 69 6f 6e 34 2e 74 6d 70 22 29 3b 0a 3f 3e 0a 0a 2d 2d | ."/copy_variation4.tmp");.?>..-- |
0820 | 45 58 50 45 43 54 46 2d 2d 0a 2a 2a 2a 20 54 65 73 74 20 63 6f 70 79 28 29 20 66 75 6e 63 74 69 | EXPECTF--.***.Test.copy().functi |
0840 | 6f 6e 3a 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 73 20 77 69 74 68 20 | on:.destination.file.names.with. |
0860 | 65 6d 70 74 79 20 73 74 72 69 6e 67 2c 20 6e 75 6c 6c 73 20 26 20 62 6f 6f 6c 73 20 2a 2a 2a 0a | empty.string,.nulls.&.bools.***. |
0880 | 53 69 7a 65 20 6f 66 20 74 68 65 20 73 6f 75 72 63 65 20 66 69 6c 65 20 62 65 66 6f 72 65 20 63 | Size.of.the.source.file.before.c |
08a0 | 6f 70 79 20 6f 70 65 72 61 74 69 6f 6e 20 3d 3e 20 69 6e 74 28 31 35 30 30 29 0a 0a 2d 2d 20 4e | opy.operation.=>.int(1500)..--.N |
08c0 | 6f 77 20 61 70 70 6c 79 69 6e 67 20 63 6f 70 79 28 29 20 6f 6e 20 73 6f 75 72 63 65 20 66 69 6c | ow.applying.copy().on.source.fil |
08e0 | 65 20 74 6f 20 63 72 65 61 74 65 20 63 6f 70 69 65 73 20 2d 2d 0a 2d 2d 20 49 74 65 72 61 74 69 | e.to.create.copies.--.--.Iterati |
0900 | 6f 6e 20 31 20 2d 2d 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e | on.1.--.Existence.of.destination |
0920 | 20 66 69 6c 65 20 62 65 66 6f 72 65 20 63 6f 70 79 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 65 29 0a | .file.before.copy.=>.bool(true). |
0940 | 43 6f 70 79 20 6f 70 65 72 61 74 69 6f 6e 20 3d 3e 20 0a 57 61 72 6e 69 6e 67 3a 20 63 6f 70 79 | Copy.operation.=>..Warning:.copy |
0960 | 28 25 73 29 3a 20 25 73 0a 62 6f 6f 6c 28 66 61 6c 73 65 29 0a 45 78 69 73 74 65 6e 63 65 20 6f | (%s):.%s.bool(false).Existence.o |
0980 | 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 65 29 | f.destination.file.=>.bool(true) |
09a0 | 0a 44 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 20 3d 3e 20 25 73 2f 0a 53 69 | .Destination.file.name.=>.%s/.Si |
09c0 | 7a 65 20 6f 66 20 73 6f 75 72 63 65 20 66 69 6c 65 20 3d 3e 20 69 6e 74 28 31 35 30 30 29 0a 53 | ze.of.source.file.=>.int(1500).S |
09e0 | 69 7a 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 69 6e 74 28 30 | ize.of.destination.file.=>.int(0 |
0a00 | 29 0a 0a 57 61 72 6e 69 6e 67 3a 20 75 6e 6c 69 6e 6b 28 25 73 29 3a 20 25 73 0a 0a 2d 2d 20 49 | )..Warning:.unlink(%s):.%s..--.I |
0a20 | 74 65 72 61 74 69 6f 6e 20 32 20 2d 2d 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 | teration.2.--.Existence.of.desti |
0a40 | 6e 61 74 69 6f 6e 20 66 69 6c 65 20 62 65 66 6f 72 65 20 63 6f 70 79 20 3d 3e 20 62 6f 6f 6c 28 | nation.file.before.copy.=>.bool( |
0a60 | 74 72 75 65 29 0a 43 6f 70 79 20 6f 70 65 72 61 74 69 6f 6e 20 3d 3e 20 0a 57 61 72 6e 69 6e 67 | true).Copy.operation.=>..Warning |
0a80 | 3a 20 63 6f 70 79 28 25 73 29 3a 20 25 73 0a 62 6f 6f 6c 28 66 61 6c 73 65 29 0a 45 78 69 73 74 | :.copy(%s):.%s.bool(false).Exist |
0aa0 | 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 62 6f 6f 6c | ence.of.destination.file.=>.bool |
0ac0 | 28 74 72 75 65 29 0a 44 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 20 3d 3e 20 | (true).Destination.file.name.=>. |
0ae0 | 25 73 2f 0a 53 69 7a 65 20 6f 66 20 73 6f 75 72 63 65 20 66 69 6c 65 20 3d 3e 20 69 6e 74 28 31 | %s/.Size.of.source.file.=>.int(1 |
0b00 | 35 30 30 29 0a 53 69 7a 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e | 500).Size.of.destination.file.=> |
0b20 | 20 69 6e 74 28 30 29 0a 0a 57 61 72 6e 69 6e 67 3a 20 75 6e 6c 69 6e 6b 28 25 73 29 3a 20 25 73 | .int(0)..Warning:.unlink(%s):.%s |
0b40 | 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 33 20 2d 2d 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 | ..--.Iteration.3.--.Existence.of |
0b60 | 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 62 65 66 6f 72 65 20 63 6f 70 79 20 3d 3e | .destination.file.before.copy.=> |
0b80 | 20 62 6f 6f 6c 28 74 72 75 65 29 0a 43 6f 70 79 20 6f 70 65 72 61 74 69 6f 6e 20 3d 3e 20 0a 57 | .bool(true).Copy.operation.=>..W |
0ba0 | 61 72 6e 69 6e 67 3a 20 63 6f 70 79 28 25 73 29 3a 20 25 73 0a 62 6f 6f 6c 28 66 61 6c 73 65 29 | arning:.copy(%s):.%s.bool(false) |
0bc0 | 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d | .Existence.of.destination.file.= |
0be0 | 3e 20 62 6f 6f 6c 28 74 72 75 65 29 0a 44 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 | >.bool(true).Destination.file.na |
0c00 | 6d 65 20 3d 3e 20 25 73 2f 00 0a 53 69 7a 65 20 6f 66 20 73 6f 75 72 63 65 20 66 69 6c 65 20 3d | me.=>.%s/..Size.of.source.file.= |
0c20 | 3e 20 69 6e 74 28 31 35 30 30 29 0a 53 69 7a 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 | >.int(1500).Size.of.destination. |
0c40 | 66 69 6c 65 20 3d 3e 20 69 6e 74 28 30 29 0a 0a 57 61 72 6e 69 6e 67 3a 20 75 6e 6c 69 6e 6b 28 | file.=>.int(0)..Warning:.unlink( |
0c60 | 25 73 29 3a 20 25 73 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 34 20 2d 2d 0a 45 78 69 73 74 | %s):.%s..--.Iteration.4.--.Exist |
0c80 | 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 62 65 66 6f 72 65 20 | ence.of.destination.file.before. |
0ca0 | 63 6f 70 79 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 65 29 0a 43 6f 70 79 20 6f 70 65 72 61 74 69 6f | copy.=>.bool(true).Copy.operatio |
0cc0 | 6e 20 3d 3e 20 0a 57 61 72 6e 69 6e 67 3a 20 63 6f 70 79 28 25 73 29 3a 20 25 73 0a 62 6f 6f 6c | n.=>..Warning:.copy(%s):.%s.bool |
0ce0 | 28 66 61 6c 73 65 29 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e | (false).Existence.of.destination |
0d00 | 20 66 69 6c 65 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 65 29 0a 44 65 73 74 69 6e 61 74 69 6f 6e 20 | .file.=>.bool(true).Destination. |
0d20 | 66 69 6c 65 20 6e 61 6d 65 20 3d 3e 20 25 73 2f 0a 53 69 7a 65 20 6f 66 20 73 6f 75 72 63 65 20 | file.name.=>.%s/.Size.of.source. |
0d40 | 66 69 6c 65 20 3d 3e 20 69 6e 74 28 31 35 30 30 29 0a 53 69 7a 65 20 6f 66 20 64 65 73 74 69 6e | file.=>.int(1500).Size.of.destin |
0d60 | 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 69 6e 74 28 30 29 0a 0a 57 61 72 6e 69 6e 67 3a 20 75 | ation.file.=>.int(0)..Warning:.u |
0d80 | 6e 6c 69 6e 6b 28 25 73 29 3a 20 25 73 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 35 20 2d 2d | nlink(%s):.%s..--.Iteration.5.-- |
0da0 | 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 62 | .Existence.of.destination.file.b |
0dc0 | 65 66 6f 72 65 20 63 6f 70 79 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 65 29 0a 43 6f 70 79 20 6f 70 | efore.copy.=>.bool(true).Copy.op |
0de0 | 65 72 61 74 69 6f 6e 20 3d 3e 20 0a 57 61 72 6e 69 6e 67 3a 20 63 6f 70 79 28 25 73 29 3a 20 25 | eration.=>..Warning:.copy(%s):.% |
0e00 | 73 0a 62 6f 6f 6c 28 66 61 6c 73 65 29 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 | s.bool(false).Existence.of.desti |
0e20 | 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 65 29 0a 44 65 73 74 69 6e | nation.file.=>.bool(true).Destin |
0e40 | 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 20 3d 3e 20 25 73 2f 0a 53 69 7a 65 20 6f 66 20 73 | ation.file.name.=>.%s/.Size.of.s |
0e60 | 6f 75 72 63 65 20 66 69 6c 65 20 3d 3e 20 69 6e 74 28 31 35 30 30 29 0a 53 69 7a 65 20 6f 66 20 | ource.file.=>.int(1500).Size.of. |
0e80 | 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 69 6e 74 28 30 29 0a 0a 57 61 72 6e | destination.file.=>.int(0)..Warn |
0ea0 | 69 6e 67 3a 20 75 6e 6c 69 6e 6b 28 25 73 29 3a 20 25 73 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f | ing:.unlink(%s):.%s..--.Iteratio |
0ec0 | 6e 20 36 20 2d 2d 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 | n.6.--.Existence.of.destination. |
0ee0 | 66 69 6c 65 20 62 65 66 6f 72 65 20 63 6f 70 79 20 3d 3e 20 62 6f 6f 6c 28 66 61 6c 73 65 29 0a | file.before.copy.=>.bool(false). |
0f00 | 43 6f 70 79 20 6f 70 65 72 61 74 69 6f 6e 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 65 29 0a 45 78 69 | Copy.operation.=>.bool(true).Exi |
0f20 | 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 62 6f | stence.of.destination.file.=>.bo |
0f40 | 6f 6c 28 74 72 75 65 29 0a 44 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 20 3d | ol(true).Destination.file.name.= |
0f60 | 3e 20 25 73 2f 31 0a 53 69 7a 65 20 6f 66 20 73 6f 75 72 63 65 20 66 69 6c 65 20 3d 3e 20 69 6e | >.%s/1.Size.of.source.file.=>.in |
0f80 | 74 28 31 35 30 30 29 0a 53 69 7a 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 | t(1500).Size.of.destination.file |
0fa0 | 20 3d 3e 20 69 6e 74 28 31 35 30 30 29 0a 0a 2d 2d 20 49 74 65 72 61 74 69 6f 6e 20 37 20 2d 2d | .=>.int(1500)..--.Iteration.7.-- |
0fc0 | 0a 45 78 69 73 74 65 6e 63 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 62 | .Existence.of.destination.file.b |
0fe0 | 65 66 6f 72 65 20 63 6f 70 79 20 3d 3e 20 62 6f 6f 6c 28 66 61 6c 73 65 29 0a 43 6f 70 79 20 6f | efore.copy.=>.bool(false).Copy.o |
1000 | 70 65 72 61 74 69 6f 6e 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 65 29 0a 45 78 69 73 74 65 6e 63 65 | peration.=>.bool(true).Existence |
1020 | 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 62 6f 6f 6c 28 74 72 75 | .of.destination.file.=>.bool(tru |
1040 | 65 29 0a 44 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 6e 61 6d 65 20 3d 3e 20 25 73 2f 31 | e).Destination.file.name.=>.%s/1 |
1060 | 0a 53 69 7a 65 20 6f 66 20 73 6f 75 72 63 65 20 66 69 6c 65 20 3d 3e 20 69 6e 74 28 31 35 30 30 | .Size.of.source.file.=>.int(1500 |
1080 | 29 0a 53 69 7a 65 20 6f 66 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 20 3d 3e 20 69 6e | ).Size.of.destination.file.=>.in |
10a0 | 74 28 31 35 30 30 29 0a 2a 2a 2a 20 44 6f 6e 65 20 2a 2a 2a 0a | t(1500).***.Done.***. |