It appears that when counting "# folders" and "# files" you are counting the folders at the level BELOW the selected (highlighted) folder and the number of files IN the selected folder. Often times my manual counts agree with your reported counts.
However, in the screen shot below it seems to me that the number of folders should be 20 not the 30 that you are reporting. Am I confused or is there a bug here?
Hi, it seems to be an issue with the C:\Users\Username folder in particular - the numbers in the status bar are what Windows reports when queried, but apparently it includes hidden folders which a user mode application can't actually access .
If you run SmartCopy.exe as administrator the hidden folders will show up, and the status bar count should match what you see :-)
:edit: actually it still doesn't match, because the count includes several virtual folders like Recent and Printhood that still don't show up when the directory is read with Administrator privileges. I'll have a think about changing it to actually count the directories it sees rather than trusting Windows claims.
Last edit: Simon Booth 2019-12-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just tried running as Administrator and I agree it is still wrong. In fact, I got exactly the same result as when I took the screenshot I posted earlier.
After date filtering I suspect that I won't know where the "found" files are located. Just because a folder "says" that there are no files "in me" that does not mean that there are not some files further "down the tree".
Instead of counting the folders every time SmartCopy is run, perhaps you could have a special option where one could turn on "Folder and file counting".
When the "Folder and file counting" option is turned on, each time a folder is selected (the highlighted folder changes) you would run the tree from there down and report the following:
1. Folders (one level down)
2. Total folders below this folder
3. Files in this folder
4. Total files in this folder and below
With the above one could quickly get a sense of how the "found files" were distributed.
Thanks for looking into this further.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yep, sounds like it would be worth looking into - I don't think it would be hard.
In the meantime, you can trying checking the box next to a folder - the 'Selected Folders' count that appears in the status bar will be an accurate count of how many folders below and including that directory contain files after the filtering (also the total size of the files in them).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It appears that when counting "# folders" and "# files" you are counting the folders at the level BELOW the selected (highlighted) folder and the number of files IN the selected folder. Often times my manual counts agree with your reported counts.
However, in the screen shot below it seems to me that the number of folders should be 20 not the 30 that you are reporting. Am I confused or is there a bug here?
Thanks, Don
Hi, it seems to be an issue with the C:\Users\Username folder in particular - the numbers in the status bar are what Windows reports when queried, but apparently it includes hidden folders which a user mode application can't actually access .
If you run SmartCopy.exe as administrator the hidden folders will show up, and the status bar count should match what you see :-)
:edit: actually it still doesn't match, because the count includes several virtual folders like Recent and Printhood that still don't show up when the directory is read with Administrator privileges. I'll have a think about changing it to actually count the directories it sees rather than trusting Windows claims.
Last edit: Simon Booth 2019-12-11
I just tried running as Administrator and I agree it is still wrong. In fact, I got exactly the same result as when I took the screenshot I posted earlier.
After date filtering I suspect that I won't know where the "found" files are located. Just because a folder "says" that there are no files "in me" that does not mean that there are not some files further "down the tree".
Instead of counting the folders every time SmartCopy is run, perhaps you could have a special option where one could turn on "Folder and file counting".
When the "Folder and file counting" option is turned on, each time a folder is selected (the highlighted folder changes) you would run the tree from there down and report the following:
1. Folders (one level down)
2. Total folders below this folder
3. Files in this folder
4. Total files in this folder and below
With the above one could quickly get a sense of how the "found files" were distributed.
Thanks for looking into this further.
Yep, sounds like it would be worth looking into - I don't think it would be hard.
In the meantime, you can trying checking the box next to a folder - the 'Selected Folders' count that appears in the status bar will be an accurate count of how many folders below and including that directory contain files after the filtering (also the total size of the files in them).
Thanks, I had not noticed that. I think if you gave the file count also it would be exactly what I had suggested.
I've added the selected file count ... no idea why I didn't add it originally, it's easier to calculate than the size of the selected files!
Thanks, it looks good. I appreciate your help.