Comments (5)
It's the typical exception you receive when the destination file already exists. If you take a look on the exception message, you should have something like The file 'myfile.myext' already exists.
Can you confirm?
MegaApiClient never overwrite files so you should catch this kind of exception and take appropriate actions in you code to ensure the destination file doesn't exist.
from megaapiclient.
hum, maybe you're right, is there anyway to replace the file?
from megaapiclient.
Currently there is nothing in MegaApiClient to overwrite a file (on purpose for safety reason).
In any case, you should try/catch this kind of call because even MegaApiClient was able to overwrite a file, there is lot of possible exception (the file is locked, a race condition, the drive is absent...)
from megaapiclient.
Yes you're right... what i was talking about an overload to the function DownloadFileAsync that allows to replace the files
from megaapiclient.
@silvermcd123 I understood your request about overloaded method. If you want, you can submit a PR with the changes and I'll be glad to integrate it but as I said, even with this new overloaded method, you still need to try/catch the Download method because other kind of exceptions can be raised
from megaapiclient.
Related Issues (20)
- 'Undecrypted Files' if files are uploaded after getting folder download link HOT 1
- What "Already logged in" actually mean? HOT 3
- Exception in UploadFile HOT 1
- Problem accessing MEGA API account HOT 3
- Add ability to attach thumbnails to image uploads HOT 1
- Possible To Get Progress On Get Nodes HOT 1
- Add sample to show how to retrieve folder contents recursively from parent folder
- publicly available node AccessDenied, when get info about node HOT 4
- How can I implement functions to collect more metadata?
- Unable to get download link for directory node HOT 2
- Contacts and shared folders support? Usage of owner IDs? Errors with attribute deserialization! HOT 1
- Resolving MEGA Account Blocking Issue When Uploading Files HOT 2
- MegaApiClient error when building Console App to native code HOT 1
- CG.Web.MegaApiClient.MegaApiClient.Login > Unable to cast object of type 'System.Int64' to type 'Newtonsoft.Json.Linq.JArray' HOT 3
- Problem with LoginAnonymous()
- What is the difference between `Task.Delay(retryDelay).Wait()` and `Thread.Sleep(retryDelay)` HOT 3
- Unable to load nodes due to too much memory consumption. HOT 4
- Attribute deserialization failed: Unexpected character encountered while parsing value: HOT 1
- Not returning new created folders HOT 4
- MegaApiClient is now in passive maintenance mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megaapiclient.