Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.74 KB

README.md

File metadata and controls

59 lines (43 loc) · 1.74 KB

Filen Network Drive

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

Contributors Forks Stargazers Issues License

Attention

The package is still a work in progress. DO NOT USE IT IN PRODUCTION YET. Class names, function names, types, definitions, constants etc. are subject to change until we release a fully tested and stable version.

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: "your@email.com",
	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.