When copying a directory, be sure the destination directory is in place first

This commit is contained in:
root 2008-05-28 11:28:41 -04:00
parent d569136d52
commit a85a1f35d9

View file

@ -927,6 +927,9 @@ ply_copy_directory (const char *source,
if (dir == NULL)
return false;
if (!ply_create_directory (destination))
return false;
while ((entry = readdir (dir)) != NULL)
{
if (strcmp (entry->d_name, ".") == 0)