Bug 252923 - show number of items in a directory
Summary: show number of items in a directory
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 2.15
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2010-10-01 06:46 UTC by James
Modified: 2011-01-02 18:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.0


Attachments
Display the number of items (folders and files) in a directory (3.10 KB, patch)
2010-12-11 23:42 UTC, Ghislain MARY
Details

Note You need to log in before you can comment on or make changes to this bug.
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