(username, key)
| 520 | } |
| 521 | |
| 522 | setLock(username, key) { |
| 523 | try { |
| 524 | try { |
| 525 | fs.accessSync(`/jd/log/lock`); |
| 526 | } catch (e) { |
| 527 | fs.mkdirSync(`/jd/log/lock`); |
| 528 | } |
| 529 | fs.mkdirSync(`/jd/log/lock/${key}_${username}`); |
| 530 | return false; |
| 531 | } catch (e) { |
| 532 | return true; |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | match(pattern, string) { |
| 537 | pattern = (pattern instanceof Array) ? pattern : [pattern]; |
nothing calls this directly
no outgoing calls
no test coverage detected