if isdirectory(l:path)
for file in split(globpath(l:path, "*"), "\n")
if localtime() > getftime(file) + 86400 * a:days && delete(file) != 0
- echo "Tmpwatch(): Error deleting '" . file . "'"
+ echoerr "Tmpwatch(): Error deleting '" . file . "'"
endif
endfor
else
- echo "Tmpwatch(): Directory '" . l:path . "' not found"
+ echoerr "Tmpwatch(): Directory '" . l:path . "' not found"
endif
endfunction