Skip to content

Commit

Permalink
fix: fixed file size after a local update
Browse files Browse the repository at this point in the history
  • Loading branch information
joragua committed Oct 23, 2024
1 parent 3913582 commit cbfef2e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class UploadFileFromFileSystemWorker(

val result = executeRemoteOperation { uploadFileOperation.execute(client) }

if (result == Unit) {
if (result == Unit && behavior == UploadBehavior.MOVE) {
removeLocalFile() // Removed file from tmp folder
}
}
Expand Down Expand Up @@ -289,7 +289,7 @@ class UploadFileFromFileSystemWorker(
)

// Step 4: Remove tmp file folder after uploading
if (result == Unit) {
if (result == Unit && behavior == UploadBehavior.MOVE) {
removeLocalFile()
}
}
Expand Down

0 comments on commit cbfef2e

Please sign in to comment.