diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-18 12:36:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-18 12:36:21 +0800 |
commit | 8dc4b5d3f8145e679ae27b2b7e8a85cc122f7044 (patch) | |
tree | 6d8654d236fe5eebf9e88dad3af6bbad31e99472 /script-beta/fs-utility.lua | |
parent | fcdcc3bafdcf78fa658ca6a0bdc9badf0135c34f (diff) | |
download | lua-language-server-8dc4b5d3f8145e679ae27b2b7e8a85cc122f7044.zip |
更新一下utility
Diffstat (limited to 'script-beta/fs-utility.lua')
-rw-r--r-- | script-beta/fs-utility.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script-beta/fs-utility.lua b/script-beta/fs-utility.lua index 40a939ce..42041734 100644 --- a/script-beta/fs-utility.lua +++ b/script-beta/fs-utility.lua @@ -385,6 +385,9 @@ local function fileRemove(path, optional) end local function fileCopy(source, target, optional) + if optional.onCopy and optional.onCopy(source, target) == false then + return + end local isDir1 = fsIsDirectory(source, optional) local isDir2 = fsIsDirectory(target, optional) local isExists = fsExists(target, optional) @@ -415,6 +418,9 @@ local function fileCopy(source, target, optional) end local function fileSync(source, target, optional) + if optional.onSync and optional.onSync(source, target) == false then + return + end local isDir1 = fsIsDirectory(source, optional) local isDir2 = fsIsDirectory(target, optional) local isExists = fsExists(target, optional) |