This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require("fs"); | |
| const path = require("path"); | |
| const https = require("https"); | |
| // File and paths | |
| // get this data from "https://evssyncweb25.idrive.com/evs/browseFolder" call | |
| const filePath = "files.json"; | |
| const logFilePath = "failed_downloads.log"; | |
| const baseUrl = "https://evssyncweb25.idrive.com/evs/v1/downloadFile?version=0&p="; | |
| const directoryPath = "IDRIVE_PATH"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Stack { | |
| #stack = []; | |
| push(item) { | |
| this.#stack.unshift(item); | |
| return this; | |
| } | |
| peep() { | |
| return this.#stack; |
OlderNewer