docs: use 'fs-extra' instead of 'fs-promise' (#1309)
This commit is contained in:
parent
2f2078bf99
commit
130e363856
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ app.use(async function (ctx, next) {
|
|||
|
||||
|
||||
```js
|
||||
const fs = require('fs-promise');
|
||||
const fs = require('mz/fs');
|
||||
|
||||
app.use(async function (ctx, next) {
|
||||
const paths = await fs.readdir('docs');
|
||||
|
|
Loading…
Reference in a new issue