Posted 25 February 2016 - 12:50 PM
The copy, delete and move programs use fs.find to perform actions on files. However fs.find still searches the entire computer's filesystem even when a non wildcard argument is specified. For computers with a large number of files this can lead to a large delay.
Version
Tested in CC 1.78, but I'd expect this occurs in every version featuring fs.find
Expected results
A non wildcard pattern (not containing "*") would simply call fs.exists.
Reproduction steps
This only really matters when the computer has a lot of files - there are about 2500 on my computer.
Version
Tested in CC 1.78, but I'd expect this occurs in every version featuring fs.find
Expected results
A non wildcard pattern (not containing "*") would simply call fs.exists.
Reproduction steps
local start = os.clock()
fs.find("rom")
print("Took: " .. (os.clock() - start)) -- Takes about 2 seconds on my computer
This only really matters when the computer has a lot of files - there are about 2500 on my computer.