Skip to content

Commit

Permalink
fix: fix package import
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed May 20, 2024
1 parent c7fec2f commit 9d12472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/file.storage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Bluebird from 'bluebird'
import colors from 'colors/safe.js'
import type {Request, Response} from 'express'
import fse, {mkdirp} from 'fs-extra'
import fse from 'fs-extra'
import {readdir, rm, stat, unlink, writeFile} from 'fs/promises'
import {min} from 'lodash-es'
import {join, sep} from 'path'
Expand All @@ -15,7 +15,7 @@ export class FileStorage implements IStorage {

public async check(): Promise<boolean> {
try {
await mkdirp(this.cacheDir)
await fse.mkdirp(this.cacheDir)
await writeFile(join(this.cacheDir, '.check'), '')
return true
} catch (e) {
Expand Down

0 comments on commit 9d12472

Please sign in to comment.