summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-01 21:59:41 +0800
committerruki <[email protected]>2019-09-01 21:59:41 +0800
commit80b583a69845241f61e142c99341c18583316171 (patch)
tree1fcddf381b98e61b650270d1a454de91e9c3378d /core
parent4e2efd1b22f337a94d9186eb213a1ba1bd76bc55 (diff)
add utils.merge.archive rule
Diffstat (limited to 'core')
-rw-r--r--core/src/xmake/os/mtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/os/mtime.c b/core/src/xmake/os/mtime.c
index 690ba46c1..dc9d70a22 100644
--- a/core/src/xmake/os/mtime.c
+++ b/core/src/xmake/os/mtime.c
@@ -44,7 +44,7 @@ tb_int_t xm_os_mtime(lua_State* lua)
// done os.mtime(path)
tb_file_info_t info = {0};
- if (tb_file_info(path, &info) && (info.type == TB_FILE_TYPE_FILE))
+ if (tb_file_info(path, &info))
lua_pushinteger(lua, (lua_Integer)info.mtime);
else lua_pushinteger(lua, 0);