Add or update table of contents to specified paths. Return number of changed files
(paths, min_toc_len, verbose)
| 387 | return 1 |
| 388 | |
| 389 | def updateDocumentToC(paths, min_toc_len, verbose): |
| 390 | """Add or update table of contents to specified paths. Return number of changed files""" |
| 391 | n = 0 |
| 392 | for g in paths: |
| 393 | for f in glob.glob(g): |
| 394 | if os.path.isfile(f): |
| 395 | n = n + updateSingleDocumentToC(input_file=f, min_toc_len=min_toc_len, verbose=verbose) |
| 396 | return n |
| 397 | |
| 398 | def updateDocumentToCMain(): |
| 399 | """Add or update table of contents to specified paths.""" |
no test coverage detected