Skip to content

Instantly share code, notes, and snippets.

View guilhermepontes's full-sized avatar
🪁

Guilherme Pontes guilhermepontes

🪁
View GitHub Profile
@guilhermepontes
guilhermepontes / download.js
Last active May 4, 2025 19:37
download manually from iDrive
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";
class Stack {
#stack = [];
push(item) {
this.#stack.unshift(item);
return this;
}
peep() {
return this.#stack;