diff options
| author | ruki <[email protected]> | 2019-01-02 22:52:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-01-02 11:17:22 +0800 |
| commit | 5190a07502ec7c962f0db3a628c0b05f3877cfff (patch) | |
| tree | cbbdeb10320d5b561696ca75bf83055c0c4dbcdc | |
| parent | a4063346a3e5989ecde56c7eb165300936174096 (diff) | |
fix os.emptydir
| -rw-r--r-- | core/src/xmake/os/emptydir.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/xmake/os/emptydir.c b/core/src/xmake/os/emptydir.c index c3f8f79ed..cbeda1387 100644 --- a/core/src/xmake/os/emptydir.c +++ b/core/src/xmake/os/emptydir.c @@ -44,12 +44,9 @@ static tb_bool_t xm_os_emptydir_walk(tb_char_t const* path, tb_file_info_t const tb_assert_and_check_return_val(path && info && is_emptydir, tb_false); // is emptydir? - if (info->type == TB_FILE_TYPE_FILE) + if (info->type == TB_FILE_TYPE_FILE || info->type == TB_FILE_TYPE_DIRECTORY) { - // not emptydir *is_emptydir = tb_false; - - // break return tb_false; } |
