@filen/network-drive
v0.9.36
Published
Filen Network Drive
Downloads
1,635
Readme
Installation
- Install using NPM
npm install @filen/network-drive@latest
- Initialize the network drive
import { FilenSDK } from "@filen/sdk"
import { NetworkDrive } from "@filen/network-drive"
import path from "path"
import os from "os"
// Initialize a SDK instance (optional)
const filen = new FilenSDK({
metadataCache: true,
connectToSocket: true,
tmpPath: path.join(os.tmpdir(), "filen-sdk")
})
await filen.login({
email: "[email protected]",
password: "supersecret123",
twoFactorCode: "123456"
})
const networkDrive = new NetworkDrive({
sdk: filen,
mountPoint: "X:" // or /path/to/mount on Linux/macOS
})
await networkDrive.start()
console.log("Network drive started")
License
Distributed under the AGPL-3.0 License. See LICENSE for more information.