WilliamHiggs / video-glitcher

📼 Glitches & data-moshes videos on the CLI like they are corrupt
7 stars 0 forks source link

check all videoNames are valid before execution of glitch script #4

Closed WilliamHiggs closed 5 years ago

WilliamHiggs commented 6 years ago

check all videoNames are valid before attempting to glitch them to avoid the process dying half way through a glitch session.

WilliamHiggs commented 6 years ago

Created pathChecker() method and added tests for this. Kept it in the try/catch block as promises should only be kept for asynchronous code. as we are checking the file paths synchronously this will suit better.

WilliamHiggs commented 5 years ago

pathChecker now returns the name of all files that it is unable to find.