mirror of
https://github.com/danbulant/console-hub
synced 2026-07-05 02:50:50 +00:00
Update main.js
This commit is contained in:
parent
1dc4b81620
commit
bb98af5d38
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
|
@ -173,7 +173,7 @@ ipcMain.on('fullscreen', (event, arg) => {
|
||||||
})
|
})
|
||||||
ipcMain.on('listFiles', (event, arg) => {
|
ipcMain.on('listFiles', (event, arg) => {
|
||||||
console.log('Listing all files and directories in ' + arg);
|
console.log('Listing all files and directories in ' + arg);
|
||||||
dirs = files.walkDir('my-dir', function(filePath) {
|
dirs = files.walkDir(arg, function(filePath) {
|
||||||
const fileContents = fs.readFileSync(filePath, 'utf8');
|
const fileContents = fs.readFileSync(filePath, 'utf8');
|
||||||
console.log(filePath, fileContents);
|
console.log(filePath, fileContents);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue