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'));
|
var torrent = await read(fullPath).catch(e => console.log('Read error'));
|
||||||
torrentFiles = { ...torrentFiles, ...torrent }; // concat them
|
torrentFiles = { ...torrentFiles, ...torrent }; // concat them
|
||||||
};
|
};
|
||||||
console.log('Done scanning.')
|
console.log('Done scanning.');
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFilesizeInBytes(filename) {
|
function getFilesizeInBytes(filename) {
|
||||||
var stats = fs.statSync(filename)
|
var stats = fs.statSync(filename);
|
||||||
var fileSizeInBytes = stats["size"]
|
var fileSizeInBytes = stats["size"];
|
||||||
return fileSizeInBytes
|
return fileSizeInBytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
function writeFile() {
|
function writeFile() {
|
||||||
|
|
Loading…
Reference in New Issue