INNER CODE UNIT · JavaScript

handleDeleteVideoStatusAndPath

stemrollerapp/stemroller · main-src/main.js:57

async function handleDeleteVideoStatusAndPath(event, videoId) {
  return processQueue.deleteVideoStatusAndPath(videoId)
}

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)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…