print verbose status for /bin/mv -v

This commit is contained in:
payonel 2017-05-16 22:29:39 -07:00
parent 57698127fb
commit 08bb90faa3

View File

@ -161,6 +161,7 @@ function lib.recurse(fromPath, toPath, options, origin, top)
if (toReal.."/"):find(fromReal.."/",1,true) then
return nil, "cannot write a directory, '" .. fromPath .. "', into itself, '" .. toPath .. "'"
elseif mv then
status(verbose, fromPath, toPath)
return os.rename(fromPath, toPath)
end
end