Formatting scan torrent files.
This commit is contained in:
parent
9f2220233c
commit
45d356176a
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue