Milo: remote learn + remove logger

This commit is contained in:
kepler155c@gmail.com
2019-01-22 15:50:37 -05:00
parent e4cfba5750
commit 4276ea533f
13 changed files with 363 additions and 282 deletions

View File

@@ -68,7 +68,7 @@ local function isValid(drive)
end
local function needsLabel(drive)
return drive.isDiskPresent() and not drive.getMountPath()
return drive.isDiskPresent() and not drive.getMountPath() and not drive.getAudioTitle()
end
function page:drawInfo(drive, textArea)
@@ -117,8 +117,7 @@ function page:copy(sdrive, tdrive)
local function countFiles(source, target)
if fs.isDir(source) then
local list = fs.list(source)
for _,f in pairs(list) do
for _,f in pairs(fs.list(source)) do
countFiles(fs.combine(source, f), fs.combine(target, f))
end
else
@@ -133,8 +132,7 @@ function page:copy(sdrive, tdrive)
if not fs.exists(target) then
fs.makeDir(target)
end
local list = fs.list(source)
for _,f in pairs(list) do
for _,f in pairs(fs.list(source)) do
rawCopy(fs.combine(source, f), fs.combine(target, f))
end