Skip to content

Commit

Permalink
fix: fs socket events, sorting, internal tree mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Jun 5, 2024
1 parent 0e4db3c commit 7a6599d
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 120 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/sdk",
"version": "0.1.111",
"version": "0.1.112",
"description": "Filen SDK",
"main": "dist/node/index.js",
"browser": "dist/browser/index.js",
Expand Down
5 changes: 5 additions & 0 deletions src/cloud/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3555,6 +3555,11 @@ export class Cloud {
const fileName = name ? name : file.name
const mimeType = mimeTypes.lookup(fileName) || "application/octet-stream"
const fileSize = file.size

if (fileSize <= 0) {
throw new Error("Empty files are not supported.")
}

let dummyOffset = 0
let fileChunks = 0
const lastModified = file.lastModified
Expand Down
Loading

0 comments on commit 7a6599d

Please sign in to comment.