diff options
Diffstat (limited to 'script/fs-utility.lua')
-rw-r--r-- | script/fs-utility.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/fs-utility.lua b/script/fs-utility.lua index 529e8fcd..413114f0 100644 --- a/script/fs-utility.lua +++ b/script/fs-utility.lua @@ -434,7 +434,7 @@ local function fileSync(source, target, option) if isDir1 then if isDir2 then local fileList = m.fileList() - for filePath in target:list_directory() do + for filePath in fs.pairs(target) do fileList[filePath] = true end for filePath in source:list_directory() do @@ -558,7 +558,7 @@ function m.fileSync(source, target, option) end function m.scanDirectory(dir, callback) - for fullpath in dir:list_directory() do + for fullpath in fs.pairs(dir) do if fs.is_directory(fullpath) then m.scanDirectory(fullpath, callback) else |