Files icon indicating copy to clipboard operation
Files copied to clipboard

Folders in network drives show having '0B' size

Open xjarlie opened this issue 3 years ago • 6 comments

Description

Folders on mapped network drives appear to have a size of 0 bytes and contain '0 files, 0 folders' when Windows Explorer shows the correct size and contents - when the folders' properties are viewed.

Steps To Reproduce

  1. Map a network drive
  2. Add a folder with contents
  3. Check the properties of the folder
  4. The folder appears (incorrectly) to have a size of zero bytes

Expected behavior

The properties view of network drive folders should show the correct size and contents of the folder.

Files Version

v2.0.34.0

Windows Version

Windows 11 21H2 22000.282

Relevant Assets

ApplicationFrameHost_AUY7DPoM46

explorer_WgFAmdpvHr

xjarlie avatar Nov 07 '21 03:11 xjarlie

@yaichenbaum

Josh65-2201 avatar Jul 11 '22 02:07 Josh65-2201

@xjarlie is this still an issue in v2.3.3?

yaira2 avatar Jul 11 '22 02:07 yaira2

Still an issue (duh, just try the steps in the description 🙃). We don't calculate the size and items number for network folders as it would be painfully slow with Storage API. Switching to WinUI may make this possible, (or maybe query the size with the fulltrust process somehow).

gave92 avatar Jul 18 '22 21:07 gave92

I don't have a network drive to test with 😂

yaira2 avatar Jul 18 '22 21:07 yaira2

Ha! I don't either, I've just set a folder as shared and then accessed it with \\localhost\test folder from the same PC 😆 Sorry about the "duh" btw.

gave92 avatar Jul 18 '22 21:07 gave92

I'll have to try this trick. Perhaps we can do something similar for the automated testing.

yaira2 avatar Jul 18 '22 23:07 yaira2

Is this still an issue in the preview version. https://files.community/download

Josh65-2201 avatar Feb 03 '23 06:02 Josh65-2201

Yes

yaira2 avatar Feb 03 '23 15:02 yaira2

I would love for there to be an option to disable this feature for non-local disks. For local disks it works great but when I open a folder in a large SMB file share, the app just freezes and crashes with this feature enabled.

ChristopherHaws avatar Feb 22 '23 00:02 ChristopherHaws

It doesn't work on network drives so the crash is probably not from this please make a separate bug report for it.

Josh65-2201 avatar Feb 22 '23 00:02 Josh65-2201

The issue appears to have already been resolved. image

hishitetsu avatar Sep 08 '23 08:09 hishitetsu

Thanks for the update

yaira2 avatar Sep 08 '23 12:09 yaira2