Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows version includes files synced from OneDrive/Sharepoint in space calculations #265

Open
theonetruetom opened this issue Jul 19, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@theonetruetom
Copy link

I use this to do disk space analysis on client workstations without disturbing their work (our remote access tool has a PowerShell that runs as SYSTEM, so I can do this without having to remote in physically to each machine), but lately it seems like gdu is including space consumed by files that exist in SharePoint or OneDrive, which throws off my investigation considerably.

Is there any way to make the app ignore files that don't exist locally and are only cloud synced?

@btrfs-d
Copy link

btrfs-d commented Aug 28, 2024

I have this same exact issue. @dundee Please advise. This is the best utility I've found for remote storage investigations but the SharePoint/OneDrive issue is incredibly problematic.

@dundee
Copy link
Owner

dundee commented Aug 29, 2024

I am not sure if I we are able to detect whether the file is local or "virtual" and placed in cloud.

Can you use -i or -I options to ignore the paths?

@btrfs-d
Copy link

btrfs-d commented Sep 6, 2024

That's problematic because the intent is to see how much local space is being occupied by locally downloaded SharePoint/OneDrive files.

Consider the following scenario (incredibly common with my client environments, and I imagine many others):

  • A workstation contains a 512GB disk.
  • The Windows system and installed applications occupy 75GB of storage on the disk.
  • The user has a OneDrive account logged in and synced, with 40GB of total files in their cloud storage for OneDrive, and 10GB of those downloaded locally.
  • The user also has a company SharePoint library synced locally, being 300GB total, with 50GB of that downloaded locally.

gdu should detect a total of 135GB/512GB storage used (75GB + 10GB + 50GB) on the disk.
Currently, this does not work, and gdu will detect as 415GB/512GB (75GB + 40GB + 300GB). Omitting the OneDrive/SharePoint directories defeats the purpose of using a disk scanning utility.

@theonetruetom
Copy link
Author

The more extreme examples of this are where a 2TB SharePoint is synced with the machine with the same 512GB disk, and it becomes very confusing to do space usage analysis.

@dundee
Copy link
Owner

dundee commented Sep 11, 2024

I will try to check if there are some possibilities to detect this.

@theonetruetom
Copy link
Author

theonetruetom commented Oct 16, 2024

It looks like there are Windows filesystem attributes, specifically "RecallOnAccess" and "Unpinned" that, if set, appears to indicate that files are not stored locally. I don't know how hard it would be to programmatically check for this, but it's a thought.

@EntropicNinja
Copy link

I'd like to second (3rd) this feature request.

@dundee dundee added the enhancement New feature or request label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants