Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Add ConvertFilenameIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Oct 25, 2023
1 parent 4ee6a5c commit ea154be
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/utils/convertfilename.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import * as iconv from 'iconv-lite'
import * as iconv from 'iconv-lite'
import { existsPath } from '../lib/lwfs/lwfs'

// https://github.com/ashtuchkin/iconv-lite/wiki/Supported-Encodings
Expand Down Expand Up @@ -48,10 +48,8 @@ export class ConvertFilenameIterator implements IterableIterator<string> {
return
}
this.index += 1
return enc // iconv.decode(this.fileNameBuffer, enc)
} catch (e) {
console.error(e)
}
return iconv.decode(this.fileNameBuffer, enc)
} catch (e) { }
}
}

Expand Down

0 comments on commit ea154be

Please sign in to comment.