]> git.tdb.fi Git - builder.git/blobdiff - source/copy.cpp
Create destination path in Copy instead of source path
[builder.git] / source / copy.cpp
index c9cb3112ac25465d81ddf3a098eacbb5e46003ed..cdbbd48f1eead0b7c399a4b7ec7ad534252be2c4 100644 (file)
@@ -32,7 +32,8 @@ int Copy::check()
 
 void Copy::Worker::main()
 {
-       Path::mkpath(copy.src.subpath(0, copy.src.size()-1), 0755);
+       Path::mkpath(copy.dest.subpath(0, copy.dest.size()-1), 0755);
+       
        if(unlink(copy.dest.str().c_str())<0 && errno!=ENOENT)
        {
                int err=errno;