Flutter_Installer icon indicating copy to clipboard operation
Flutter_Installer copied to clipboard

Checking for the file existed or not must be added

Open yahu1031 opened this issue 3 years ago • 2 comments

Hello there,

I have found one more issue and need to be fixed for better progress. Files must be checked for existence in the path given. I was testing this software and I have given C:\src path to install flutter and I got this output

Can't load Kernel binary: Invalid kernel binary format version.

like the download happens and can't extract the download due to already existence of flutter folder in the given directory and I don't know exactly what the extraction have done there, But, I guess it tried to replace the existing one. As I use master branch and tried to install stable version the files just got misplaced / renamed / replaced and the current flutter version is not supporting the files.

And moreover the user who wants to install the package and suddenly got a failure the download is restarting along the process. This may lead to wastage of user's data. The downloaded package cannot be used further. In that case that must be deleted as soon as the download or extraction failed. This may give a good result (manages the storage, I mean 500MB is also a storage 😉 ), as the user gets more download/extraction failure the more data/storage it consumes on disk in the name of Temp.

Hope you gonna solve it soon. Even I will keep working on it 😇.

Regards

yahu1031 avatar Aug 01 '20 01:08 yahu1031

Thank you much for notices @yahu1031

I will be working into it and PRs are very welcome if you find a solution 😊😉

YazeedAlKhalaf avatar Aug 01 '20 10:08 YazeedAlKhalaf

@YazeedAlKhalaf of course sure I would love to work on this ❤

yahu1031 avatar Aug 01 '20 12:08 yahu1031