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