const readdirSync = require('fs').readdirSync;

function listDir(dir) {
	readdirSync(dir)
		.filter(f => f.endsWith('.cc'))
		.forEach(f => console.log(dir + '/' + f));
}

listDir('src');
listDir('src/UiArea');
listDir('src/arch/win32');

const {readdirSync} = require('fs');

function listDir(dir) {
	readdirSync(dir)
		.filter(f => f.endsWith('.cc'))
		.forEach(f => console.log(dir + '/' + f));
}

listDir('src');
listDir('src/UiArea');
listDir('src/arch/win32');

					
--- 
+++ 
@@ -1,4 +1,4 @@
-const readdirSync = require('fs').readdirSync;
+const {readdirSync} = require('fs');
 
 function listDir(dir) {
 	readdirSync(dir)
@@ -9,3 +9,5 @@
 listDir('src');
 listDir('src/UiArea');
 listDir('src/arch/win32');
+
+					
Fix unsupported syntax in node 4
