Weird file number difference in a folder vs Network drive

I  have a really weird issue that I can't figure out. I have a folder that I have shared. If I go to the properties of the folder I will get x amount of files, but on the a mapped network drive (with a letter) of the same folder I get more files. Does anyone knows why? I have a screenshot attached that shows the network drive folder on the left and the actual folder on the server.2017-11-28_10-17-42.png
LVL 1
chipsexpertsAsked:
Who is Participating?
 
chipsexpertsAuthor Commented:
Ok, I think I found the answer to this issue. The problem relates to path longer than 255 characters. Some files where the path is longer than that amount might not show properly or at all in the Windows Explorer view. Using TreeSize I was able to pinpoint a particular folder. In the example below the folder on the left is the local one, the path for that particular folder is 256 characters long, the one on the right is the same folder, but on the network drive, it is 236 and it displays the actual amount of files. So there you go, because of the long path Windows is not able to read properly.
2017-11-29_10-12-07.png
2
 
William MillerInventory/IT ConsultantCommented:
Are there any hidden files/folders in the physical drive location?
0
 
James BunchSystems AnalystCommented:
Are you accessing both of these screenshots from the same computer or is one from one workstation and the mapped drive from a different? If using two workstations are you using a domain like Active Directory to see the folders or is this in a workgroup?

Reason I am asking is if I share a folder from my PC to the network and view it on another PC from a workgroup then the security tab may reveal that some users have access to some subfolders or files that the original author of the file may not be. This will result in a difference in file count and size in bytes to prevent anyone from knowing there are more files than what they actually see.

It may not be your issue but I have seen this on Domains in the past where one user can't see what another one can because of either the allowed security of the file or some policy in the GPOs.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
chipsexpertsAuthor Commented:
I get the same results, on both folders, either from the same server or from an external computer. Both machines are in the domain, the server that host the files is a Windows SBS 2008.
0
 
Brian BEE Topic Advisor, Independant Technology ProfessionalCommented:
It will most likely be permissions on some folders within that share. Something like WinDirStat (https://windirstat.net/) might be useful to help get a breakdown of where those files are located.
1
 
chipsexpertsAuthor Commented:
This is the screenshot from the server itself. I even used Beyond and Compare and it says there are no differences, but Windows properties of the files tells me otherwise.

2017-11-28_10-46-27.png
0
 
James BunchSystems AnalystCommented:
I was thinking like @Brian stated, inside that directory some of those files/folders inside have individual permissions/security that allows them to be seen on a share or not. That is why when you are looking at it from the directory directly on the machine instead of the mapped drive you are seeing the full amount of data and file count. That is what it seems like at least
1
 
Brian BEE Topic Advisor, Independant Technology ProfessionalCommented:
I like BC as well, but it seems to be steering you wrong here. Then again it may depend on whose security rights it is running as. So if you didn't already, try "run as" the domain admin. Out of interest which view does it agree with, the share or the logical drive?

You could look manually, but obviously it is a large number of files, so unless there is a difference near the top level directories, it will be hard to spot.
0
 
chipsexpertsAuthor Commented:
I'm using an Enterprise admin account to get the properties on both. So if there's a problem with permissions shouldn't I still be getting the same amount of files?
0
 
Brian BEE Topic Advisor, Independant Technology ProfessionalCommented:
Without find an example of a folder that exists on the drive, but doesn't show in the share it is going to be difficult. It could still be permissions though.

So when you did Beyond Compare, which view did return? Same as the share or the folder?
0
 
chipsexpertsAuthor Commented:
With Beyond and compare I did local and mapped network drive. There are absolutely no differences whatsoever. I just need to prove the client that there is not difference, but without factual proof they are just going by the amount of files displayed on the folder. And think there are missing files.
0
 
James BunchSystems AnalystCommented:
Other methods you could use to see would be Treesize by Jam Software (Link Below). You can run this on any desktop for the mapped drive but I would suggest doing it on the actual server that hosts the data. You can run one scan from the directory and one from the mapped drive and it will compare each folder, detailing each folder and how many bytes/Mb/Gb they have etc. You can literally set this up for a side by side comparison to narrow down your search of which folder has items missing then you can drill into them to see what files are showing and which aren't. Its a free tool and good to use for a lot of other applications.

https://www.jam-software.com/treesize_free/
0
 
chipsexpertsAuthor Commented:
I will check with Treesize and find out if there's a missmatch, thanks everyone.
1
 
Brian BEE Topic Advisor, Independant Technology ProfessionalCommented:
Good find chipsexperts. Doesn't help us now, but here is a little more about this: https://news.slashdot.org/story/16/05/31/0012222/microsoft-removes-260-character-path-length-limit-in-windows-10-redstone
0
 
James BunchSystems AnalystCommented:
Glad Treesize was able to help you find it.
1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.