File count doubled in progress window

Please report only one bug per message!

Moderators: white, sheep, Hacker, Stefan2

Post Reply
Pantalaimon
Junior Member
Junior Member
Posts: 4
Joined: 2017-08-17, 08:48 UTC

File count doubled in progress window

Post by *Pantalaimon » 2017-08-17, 09:03 UTC

The file count displayed in the progress window seems to be double the actual file count.

To illustrate: [EDIT] I wanted to attach an image, but since this is my first post, it won't let me :)

[EDIT2] honey-pot.nl/temp/tc90a_file_count_bug.png


Message from moderator

 
Last edited by Pantalaimon on 2017-08-17, 16:57 UTC, edited 1 time in total.

User avatar
Dalai
Power Member
Power Member
Posts: 6249
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai » 2017-08-17, 14:14 UTC

Post the link without any http and www prefixes.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

Pantalaimon
Junior Member
Junior Member
Posts: 4
Joined: 2017-08-17, 08:48 UTC

Post by *Pantalaimon » 2017-08-17, 16:58 UTC

OP updated with 'link'

User avatar
Dalai
Power Member
Power Member
Posts: 6249
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai » 2017-08-17, 19:14 UTC

Did you count the files before deleting them using Ctrl+L, including all of the subdirectories? The number in the status bar is only the number in the current directory. So unless you have a flat structure, i.e. all files in the current directory, the two numbers may not be the same.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

Pantalaimon
Junior Member
Junior Member
Posts: 4
Joined: 2017-08-17, 08:48 UTC

Post by *Pantalaimon » 2017-08-17, 21:11 UTC

Dalai wrote:Did you count the files before deleting them using Ctrl+L, including all of the subdirectories? The number in the status bar is only the number in the current directory. So unless you have a flat structure, i.e. all files in the current directory, the two numbers may not be the same.

Regards
Dalai
There were no subdirectories present. I've tested this on more than one occasion with different number of files, and every time it reports double the number of files as shown in the screenshot.

I'll see if I can do some more tests tomorrow involving subdirectories and how the count relates to those cases.

Pantalaimon
Junior Member
Junior Member
Posts: 4
Joined: 2017-08-17, 08:48 UTC

Post by *Pantalaimon » 2017-08-18, 07:35 UTC

I've done some more tests on this. I created 2 scenarios. From each I selected all files and directories and performed a copy, move and delete

Scenario 1:
./ (1000 files, 2 directories)
./subdir1/ (100 files)
./subdir2/ (50 files)

File count reported:
COPY/MOVE: 1152
- 1150 files, 2 directories, seems OK

DELETE: 2154
- Apparently double the count of files+directories in the current directory = 2004
- Added with the correct count of files in both subdirectories = 150


Scenario 2:
./ (1000 files, 1 directory)
./subdir1/ (100 files, 1 directory)
./subdir1/subdir2/ (50 files)

File count reported:
COPY/MOVE: 1152
- 1150 files, 2 directories, seems OK

DELETE: 2153
- Apparently double the count of files+directories in the current directory = 2002
- Added with the correct count of files+directories in subdir1 = 151


Copy and move are reporting the correct number of items if we add both number of files and directories together.
Deleting files is reporting double the amount of files and directories in the current directory, and the correct amount of files and directories in any subdirectory.

User avatar
Dalai
Power Member
Power Member
Posts: 6249
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai » 2017-08-18, 13:56 UTC

Can you reproduce this with a clean wincmd.ini? Start TC like this:

Code: Select all

totalcmd64.exe /i="%temp%\fresh.ini"
I tried to reproduce this in TC 8.52a and 9.0a, both 32 and 64 bit on Win7, deleting to recycle bin and permanently, with varying numbers of (empty) files of up to 30k, with and without subdirs. No luck so far, TC always reports the correct number of files.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

User avatar
petermad
Power Member
Power Member
Posts: 8032
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-08-18, 17:44 UTC

2Pantalaimon
I have tried to reproduce this with TC 9.0a 32bit and 64bit under Windows 7 and Windows 10 on FAT32 and NTFS disks - deleting directly and deleting to recycle bin and deleting form Branch view and from normal Full view - and I cannot reproduce it.

Are your files possibly in a parent folder that is a hardlink or a symlink? What is the pattern of the file names if any. What are your settings for showing system/hidden files. What are your settings for ignored files - What is your Operating system and which version af TC are you using etc. etc.
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91 on Android 6.0
Get Extended Total Commander Menus | PHSM-Calendar

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36425
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-08-21, 13:24 UTC

I cannot reproduce it either - please provide more informarion, as requested by the other forum users. Thanks.
Author of Total Commander
http://www.ghisler.com

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36425
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-10-02, 09:47 UTC

So far I couldn't reproduce this problem - could anyone else reproduce it?
Author of Total Commander
http://www.ghisler.com

Post Reply