Bug 252923

Summary: show number of items in a directory
Product: [Applications] ark Reporter: James <bjlockie>
Component: generalAssignee: Raphael Kubo da Costa <rakuco>
Status: RESOLVED FIXED    
Severity: wishlist CC: gmary, rakuco
Priority: NOR Keywords: junior-jobs
Version: 2.15   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.0
Sentry Crash Report:
Attachments: Display the number of items (folders and files) in a directory

Description James 2010-10-01 06:46:48 UTC
Version:           2.15 (using KDE 4.5.1) 
OS:                Linux

Make the display of the archive show the number of items in a directory.
It shows the size of a file so why not the number of items in a subdirectory. :-)

Reproducible: Always

Steps to Reproduce:
open an archive containing a subdirectory.

Actual Results:  
The columns are "Name, Size, Date"
The size of a file is displayed in the Size column but nothing is shown for a directory.

Expected Results:  
Show "x KiB" for a file and "x items" for a directory.

If this requires processing power, make an option to turn it on or off.
Comment 1 Raphael Kubo da Costa 2010-12-08 02:19:43 UTC
Changing the default assignee in the currently open Ark bug reports to me.
Comment 2 Ghislain MARY 2010-12-11 23:42:41 UTC
Created attachment 54442 [details]
Display the number of items (folders and files) in a directory

This patch does what the bug report says but it tells how many folders and files there are in a folder instead of just the number of items.
It also changes the info panel to have consistent information with the list view.
Comment 3 Raphael Kubo da Costa 2011-01-02 18:11:56 UTC
SVN commit 1210921 by rkcosta:

Show the number of items directly under a subdirectory.

The "Size" column in the archive listing now shows the number of
directories and files directly under a given directory. The info panel
now shows the same information too.

Patch by Ghislain Mary <gmary AT lunacymaze DOT org>, thanks a lot!

FEATURE: 252923
BUG: 252923
FIXED-IN: 4.7.0

 M  +17 -3     archivemodel.cpp  
 M  +1 -1      archivemodel.h  
 M  +4 -1      infopanel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1210921