Review Request: karchive plugin extract all fix

Raphael Kubo da Costa rakuco at freebsd.org
Tue Dec 27 15:55:53 UTC 2011



> On Dec. 27, 2011, 2:11 p.m., Theofilos Intzoglou wrote:
> > plugins/karchiveplugin/karchiveplugin.cpp, line 115
> > <http://git.reviewboard.kde.org/r/102960/diff/2/?file=41926#file41926line115>
> >
> >     Do you mean adding a QDir(filepath).exists() check or keeping created paths in memory?

If KIO::StatJob implements some form of caching, KIO::NetAccess::exists() should be enough; otherwise, keeping track of the directories in memory. Or you can just do it in another patch if you don't feel like spending too much time on this right now.


> On Dec. 27, 2011, 2:11 p.m., Theofilos Intzoglou wrote:
> > plugins/karchiveplugin/karchiveplugin.cpp, line 171
> > <http://git.reviewboard.kde.org/r/102960/diff/2/?file=41926#file41926line171>
> >
> >     Normally, it shouldn't be possible to get to that return value. Sometimes I get a bit paranoid with the checks just to be sure that the program can handle every possible input. I guess I could replace the last 'else if' with an 'else'.

You can just remove the last else if altogether too.


- Raphael


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102960/#review9304
-----------------------------------------------------------


On Nov. 24, 2011, 7:32 p.m., Theofilos Intzoglou wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102960/
> -----------------------------------------------------------
> 
> (Updated Nov. 24, 2011, 7:32 p.m.)
> 
> 
> Review request for KDE Utils and Raphael Kubo da Costa.
> 
> 
> Description
> -------
> 
> * If no item was selected from the archive, nothing was extracted! Now it extracts everything.
> * Check if an entry is a directory and append '/' if necessary
> 
> 
> Diffs
> -----
> 
>   plugins/karchiveplugin/karchiveplugin.h 1db6e07 
>   plugins/karchiveplugin/karchiveplugin.cpp 6543874 
> 
> Diff: http://git.reviewboard.kde.org/r/102960/diff/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Theofilos Intzoglou
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20111227/611f5ffb/attachment.html>


More information about the Kde-utils-devel mailing list