(Path path)
| 546 | } |
| 547 | |
| 548 | private String obtainDateFromPath(Path path) { |
| 549 | Path fileName = path.getFileName(); |
| 550 | if (fileName == null) { |
| 551 | return null; |
| 552 | } |
| 553 | String date = fileName.toString(); |
| 554 | if (pattern.matcher(date).matches()) { |
| 555 | date = date.substring(prefix.length()); |
| 556 | return date.substring(0, date.length() - suffix.length()); |
| 557 | } else { |
| 558 | return null; |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | /** |
| 563 | * Thread factory for creating log file cleanup threads. |
no test coverage detected