diff options
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) |