aboutsummaryrefslogtreecommitdiff
path: root/src/renderer.ts
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2020-12-23 20:10:17 +0530
committerPriyansh <[email protected]>2020-12-23 20:10:17 +0530
commitb18cf71249b26d965215bcf06204daf6af5f55e7 (patch)
treec077bb09d95bb17e7cd9e863cfa793374d2e42a4 /src/renderer.ts
parentad76cf4c73488ba871261959c2907fc7623a1460 (diff)
downloadstyx-b18cf71249b26d965215bcf06204daf6af5f55e7.tar.xz
styx-b18cf71249b26d965215bcf06204daf6af5f55e7.zip
Getting all files and folders of home directory
Diffstat (limited to 'src/renderer.ts')
-rw-r--r--src/renderer.ts18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/renderer.ts b/src/renderer.ts
index 66042ac..d3a21bc 100644
--- a/src/renderer.ts
+++ b/src/renderer.ts
@@ -1,6 +1,12 @@
-// This file is required by the app.html file and will
-// be executed in the renderer process for that window.
-// No Node.js APIs are available in this process unless
-// nodeIntegration is set to true in webPreferences.
-// Use preload.js to selectively enable features
-// needed in the renderer process.
+import systemLevelInformation from './systemLevelInformation';
+
+// Listing Files in Home Directory
+
+const currentHomeDir: string = systemLevelInformation.getUserInfo().homedir;
+document.getElementById('username').innerHTML = systemLevelInformation.getUserInfo().username;
+
+// This variable will keep track of current path
+var currentDirectoryPath: string = currentHomeDir;
+
+const currentHomeFolders: any = systemLevelInformation.getAllFilesOfDirectory(currentHomeDir);
+