Skip to content

A package to mount a Filen account as a network drive

License

FilenCloudDienste/filen-network-drive

Repository files navigation


Filen Network Drive

A package to mount a Filen account as a network drive.

Contributors Forks Stargazers Issues License

Installation

  1. Install using NPM
npm install @filen/network-drive@latest
  1. 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.