Menu

#1 Replace system("cp filea fileb") by File::Copy

open
nobody
None
5
2001-01-19
2001-01-19
Anonymous
No

photoaddict would run out of the box on Windows if this small change would be applied:

use File::Copy

\#system\("cp $image->\{filename\} $set\_dir/images/$image\_name"\);
copy\($image->\{filename\}, "$set\_dir/images/$image\_name"\);

        \#system\("cp $image\_file $set\_dir/originals"\);
        copy\($image\_file, "$set\_dir/originals"\);

Guido Müsch

Discussion


Log in to post a comment.

MongoDB Logo MongoDB