mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 01:10:19 -04:00
print verbose status for /bin/mv -v
This commit is contained in:
parent
57698127fb
commit
08bb90faa3
@ -161,6 +161,7 @@ function lib.recurse(fromPath, toPath, options, origin, top)
|
|||||||
if (toReal.."/"):find(fromReal.."/",1,true) then
|
if (toReal.."/"):find(fromReal.."/",1,true) then
|
||||||
return nil, "cannot write a directory, '" .. fromPath .. "', into itself, '" .. toPath .. "'"
|
return nil, "cannot write a directory, '" .. fromPath .. "', into itself, '" .. toPath .. "'"
|
||||||
elseif mv then
|
elseif mv then
|
||||||
|
status(verbose, fromPath, toPath)
|
||||||
return os.rename(fromPath, toPath)
|
return os.rename(fromPath, toPath)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user