@@ -32,7 +32,7 @@ import util from "../util.js";
32
32
async function get ( options ) {
33
33
34
34
/**
35
- * If `options.cacheDir` exists, then `true`. Otherwise, it is `false`.
35
+ * If `options.cacheDir` exists, then `true`. Otherwise, it is `false`.
36
36
*
37
37
* @type {boolean }
38
38
*/
@@ -77,7 +77,7 @@ async function get(options) {
77
77
await fs . promises . rm ( nwDirPath , { recursive : true , force : true } ) ;
78
78
79
79
/**
80
- * If the compressed binary exists, then `true`. Otherwise, it is `false`.
80
+ * If the compressed binary exists, then `true`. Otherwise, it is `false`.
81
81
*
82
82
* @type {boolean }
83
83
*/
@@ -109,7 +109,7 @@ async function get(options) {
109
109
}
110
110
111
111
/**
112
- * If the compressed binary exists, then `true`. Otherwise, it is `false`.
112
+ * If the compressed binary exists, then `true`. Otherwise, it is `false`.
113
113
*
114
114
* @type {boolean }
115
115
*/
@@ -143,7 +143,7 @@ async function get(options) {
143
143
*
144
144
* @type {string }
145
145
*/
146
- let ffmpegBinaryPath = path . resolve ( nwDirPath , ffmpegFileName ) ;
146
+ let ffmpegBinaryPath = path . resolve ( options . cacheDir , ffmpegFileName ) ;
147
147
148
148
/**
149
149
* File path of where FFmpeg will be copied to.
@@ -194,7 +194,7 @@ async function get(options) {
194
194
}
195
195
196
196
/**
197
- * If the compressed binary exists, then `true`. Otherwise, it is `false`.
197
+ * If the compressed binary exists, then `true`. Otherwise, it is `false`.
198
198
*
199
199
* @type {boolean }
200
200
*/
0 commit comments