diff options
| author | ruki <[email protected]> | 2021-03-01 23:04:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-01 23:04:57 +0800 |
| commit | d94ce2055a897dc28a273a0a898f6f9b96749e10 (patch) | |
| tree | c14ca36b95f8b09625ab59479c55962629865075 | |
| parent | 30afab1009650eab95195eb7abcaa49ab85e311b (diff) | |
improve os.files
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index 6e29f5801..2436c175c 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -427,17 +427,17 @@ end -- match directories function sandbox_os.dirs(pattern, callback) - return sandbox_os.match(pattern, 'd', callback) + return (sandbox_os.match(pattern, 'd', callback)) end -- match files function sandbox_os.files(pattern, callback) - return sandbox_os.match(pattern, 'f', callback) + return (sandbox_os.match(pattern, 'f', callback)) end -- match files and directories function sandbox_os.filedirs(pattern, callback) - return sandbox_os.match(pattern, 'a', callback) + return (sandbox_os.match(pattern, 'a', callback)) end -- is directory? |
