-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The application does not remove the thumbnail file from the FS if it is removed in the original article #524
Comments
Whomever lands checking this out, please also check that all archive and ebook data is properly handled on cleanup as well. Relates to: #634 |
Are you sure we should update ebook with archive update (without user request) too? |
No, not meaning that. But when this issue is checked we should apply the same logic for archives, thumbs and ebooks:
|
…urrent ones (#683) * generate ebook get dstPath * Archive and ebook can recover if download faild * recover thumb if download faild * thumb image create just if image processing is sucssesful * create epub in tmp if it sucssesful copy to destination * archive file create in tmp if it successful move to destination * move to destination as function * update ebook download api and remove .epub from file name * report faild item to user * not show dialog if error not happen * update thumbnail based on last status of bookmark fix #524 * better warning massage Co-authored-by: Felipe Martin <[email protected]> * tmpFile without .epub * MoveToDestination change to MoveFileToDestination * return .epub * log if downloadBookImage return error * fix bug remove imgPath just if download last image be unsuccessful * update old unit test * add processing.go unit test * small massage for report failded item to the user * add some more unit test and samplefile * use sample image in unit test * use local sample file and unit test not need internet connection anymore * update error to user and log that too * add more comment * update comment * change variable name parentDir to dstDir * more simpler error handling * remove unneeded defer * remvoe unneeded epubWriter.Close() * more readable unit test in processing * more readable unit test for ebooks * delete all defer os.RemoveAll from unit tests * Better comment Co-authored-by: Felipe Martin <[email protected]> * Better Error output Co-authored-by: Felipe Martin <[email protected]> * fix err.String() method --------- Co-authored-by: Felipe Martin <[email protected]>
Data
Describe the bug / actual behavior
The problem is described in the title of the issue.
Expected behavior
If a thumbnail is removed from the original article, then it should also be removed from the file system.
To Reproduce
Steps to reproduce the behavior:
python -m SimpleHTTPServer 8080
.thumb
directory.The text was updated successfully, but these errors were encountered: