2016-10-07 17:59:18 +00:00
|
|
|
const fs = require('fs');
|
|
|
|
const path = require('path');
|
|
|
|
|
2019-10-02 04:33:07 +00:00
|
|
|
const stats = fs.statSync(path.join(__dirname, '..', 'test.asar', 'a.asar'));
|
2016-10-07 17:59:18 +00:00
|
|
|
|
|
|
|
const details = {
|
|
|
|
isFile: stats.isFile(),
|
|
|
|
size: stats.size
|
|
|
|
};
|
|
|
|
|
|
|
|
if (process.send != null) {
|
|
|
|
process.send(details);
|
|
|
|
} else {
|
|
|
|
console.log(JSON.stringify(details));
|
|
|
|
}
|