Fix file check
This commit is contained in:
parent
27fc1c55bf
commit
2073a46715
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ module.exports = {
|
|||
|
||||
|
||||
let files = fs.readdirSync(downloadsDir);
|
||||
if(files < 1) {
|
||||
if(files.length < 1) {
|
||||
this.cleanUp(downloadsDir);
|
||||
originalMessage.edit("Something went wrong when downloading the video.")
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue