Skip to content

Commit

Permalink
feat: custom cachePath
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Nov 29, 2024
1 parent 9f58d2a commit d6b744a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@filen/network-drive",
"version": "0.9.37",
"version": "0.9.38",
"description": "Filen Network Drive",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ export class NetworkDrive {
logFilePath,
readOnly = false,
disableLogging = false,
tryToInstallDependenciesOnStart = false
tryToInstallDependenciesOnStart = false,
cachePath
}: {
sdk?: FilenSDK
sdkConfig?: FilenSDKConfig
Expand All @@ -160,6 +161,7 @@ export class NetworkDrive {
readOnly?: boolean
disableLogging?: boolean
tryToInstallDependenciesOnStart?: boolean
cachePath?: string
}) {
if (!sdk && !sdkConfig) {
throw new Error("Either pass a configured SDK instance OR a SDKConfig object to the constructor.")
Expand All @@ -175,6 +177,7 @@ export class NetworkDrive {
this.mountPoint = mountPoint
this.logFilePath = logFilePath
this.readOnly = readOnly
this.cachePath = cachePath
this.tryToInstallDependenciesOnStart = tryToInstallDependenciesOnStart
this.logger = new Logger(disableLogging, false)

Expand Down

0 comments on commit d6b744a

Please sign in to comment.