Skip to content

Commit

Permalink
refactor: 不允许直接使用webdav存储
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed May 11, 2024
1 parent 79afa28 commit 1915dcf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/storage/base.storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {logger} from '../logger.js'
import type {IFileInfo} from '../types.js'
import {AlistWebdavStorage} from './alist-webdav.storage.js'
import {FileStorage} from './file.storage.js'
import {WebdavStorage} from './webdav.storage.js'

export interface IStorage {
init?(): Promise<void>
Expand All @@ -28,9 +27,6 @@ export function getStorage(config: Config): IStorage {
case 'file':
storage = new FileStorage(join(process.cwd(), 'cache'))
break
case 'webdav':
storage = new WebdavStorage(config.storageOpts)
break
case 'alist':
storage = new AlistWebdavStorage(config.storageOpts)
break
Expand Down

0 comments on commit 1915dcf

Please sign in to comment.