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

Added Get-PnPFolderStorageMetric #2646

Merged
merged 10 commits into from
Jan 12, 2023
Merged

Added Get-PnPFolderStorageMetric #2646

merged 10 commits into from
Jan 12, 2023

Conversation

robinmeure
Copy link
Contributor

Added Get-PnPFolderStorageMetric

Type

  • Bug Fix
  • New Feature
  • Sample

What is in this Pull Request ?

Added functionality to retrieve storage metrics per folder using the PnPCore adjusted way of retrieving these.
This is an attempt to get the same information as the storman.aspx page gives, but only per folder (e.g. document library)

@KoenZomers KoenZomers changed the title Create GetFolderStorageMetric.cs Added Get-PnPFolderStorageMetric Dec 13, 2022
@KoenZomers KoenZomers self-assigned this Dec 13, 2022
@KoenZomers KoenZomers added the in review PR or issue is currently being reviewed label Dec 13, 2022
@KoenZomers
Copy link
Collaborator

Only documentation needs to describe the difference between these two output variables:

image

Other than that, looks good for merge.

@KoenZomers KoenZomers merged commit e3ae418 into pnp:dev Jan 12, 2023
@khha
Copy link

khha commented Dec 11, 2023

@KoenZomers @robinmeure Hi, what are these numbers "TotalFileStreamSize" and "TotalSize"? KB or MB? And what are the differance between these 2?

@robinmeure
Copy link
Contributor Author

It's bytes, one is the size of the document itself (TotalFileStreamSize) and if the document has more than one version, the total size it consumed is reflected in TotalSize.

@khha
Copy link

khha commented Dec 12, 2023

@robinmeure @KoenZomers Thanks, I found also the command "Measure-PnPList". I see differance output. Do you know what is the differance between "Get-PnPFolderStorageMetric" and "Measure-PnPList" ?

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review PR or issue is currently being reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants