Skip to content

Commit

Permalink
fix: openCache default false
Browse files Browse the repository at this point in the history
  • Loading branch information
likun7981 committed Dec 28, 2021
1 parent 51a0713 commit 4c56815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Empty file removed sourceDir/a.mkv*
Empty file.
3 changes: 2 additions & 1 deletion src/utils/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async function parseInput(input: Array<string>, isDelete: boolean) {

function getConfig(ci: any, config: any, defaultValue: any) {
if (typeof ci === 'undefined') {
console.log(config)
if (typeof config === 'undefined') {
return defaultValue
}
Expand Down Expand Up @@ -106,7 +107,7 @@ async function parse(input: Array<string>, options: any) {
.map((s: string) => s.toLowerCase())
const saveMode = +(s || sm || 0)
const maxFindLevel = +(m || mfl || 4)
const finalOpenCache = getConfig(openCache, configOpenCache, true)
const finalOpenCache = getConfig(openCache, configOpenCache, false)
const finalMkdirIfSingle = getConfig(mkdirIfSingle, configMkdirIfSingle, true)
checkDirectory(source, dest)
checkFindLevel(maxFindLevel)
Expand Down

0 comments on commit 4c56815

Please sign in to comment.