Formatting scan torrent files.

This commit is contained in:
Dessalines 2019-02-06 19:44:07 -08:00
parent 9f2220233c
commit 45d356176a
1 changed files with 4 additions and 4 deletions

View File

@ -60,13 +60,13 @@ async function scanFolder() {
var torrent = await read(fullPath).catch(e => console.log('Read error'));
torrentFiles = { ...torrentFiles, ...torrent }; // concat them
};
console.log('Done scanning.')
console.log('Done scanning.');
}
function getFilesizeInBytes(filename) {
var stats = fs.statSync(filename)
var fileSizeInBytes = stats["size"]
return fileSizeInBytes
var stats = fs.statSync(filename);
var fileSizeInBytes = stats["size"];
return fileSizeInBytes;
}
function writeFile() {