diff options
| author | Priyansh <[email protected]> | 2020-12-23 20:10:17 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2020-12-23 20:10:17 +0530 |
| commit | b18cf71249b26d965215bcf06204daf6af5f55e7 (patch) | |
| tree | c077bb09d95bb17e7cd9e863cfa793374d2e42a4 /src/renderer.ts | |
| parent | ad76cf4c73488ba871261959c2907fc7623a1460 (diff) | |
| download | styx-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.ts | 18 |
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); + |
