Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Feb 6, 2024
1 parent 34eca07 commit 517a8a5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/tbox/platform/windows/directory.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,16 @@ static tb_long_t tb_directory_walk_copy(tb_char_t const* path, tb_file_info_t co
if (!tb_file_copy(path, dpath, TB_FILE_COPY_NONE)) tuple[2].b = tb_false;
break;
case TB_FILE_TYPE_DIRECTORY:
if (!tb_directory_create(dpath)) tuple[2].b = tb_false;
{
// reserve symlink?
if ((flags & TB_FILE_COPY_LINK) && (info->flags & TB_FILE_FLAG_LINK))
{
// just copy link and skip recursion
ok = tb_file_copy(path, dpath, TB_FILE_COPY_LINK);
skip_recursion = tb_true;
}
else ok = tb_directory_create(dpath);
}
break;
default:
break;
Expand Down

0 comments on commit 517a8a5

Please sign in to comment.