INNER CODE UNIT · JavaScript
handleOpenStemsPath
stemrollerapp/stemroller · main-src/main.js:61
async function handleOpenStemsPath(event, video) {
const videoPath = processQueue.getVideoPath(video.videoId)
let exists = null
try {
await fsPromises.access(videoPath)
exists = true
} catch (error) {
processQueue.deleteVideoStatusAndPath(video.videoId)
exists = false
}
if (exists) {
await shell.openPath(videoPath)
return 'found'
} else {
if (video.mediaSource === 'youtube') {
const response = dialog.showMessageBoxSync(mainWindow, {