(imported topic written by ltd200991)
looking for relevance to get Folder Size (both size & size on disk) & whether or not the folder is compressed… Is that possible?
thanks!
(imported topic written by ltd200991)
looking for relevance to get Folder Size (both size & size on disk) & whether or not the folder is compressed… Is that possible?
thanks!
(imported comment written by Lee Wei)
ltd2009,
Since I don’t know the context of your question, just be careful that file processing queries and relevance can lock up the BigFix Client for an extended period of time while trying to gather the information.
The BigFix Folder inspector inherits from the FileSystem Object inspector, which has a property to determine if the folder is compressed.
q: (pathname of it, sum of sizes of descendants of it, compressed of it) of folder “c:\temp”
A: c:\temp, 1105356, False
Lee Wei
(imported comment written by ltd200991)
thanks! (compressed of it) of folder was exactly what I needed…
(imported comment written by MrFixit)
I’ve rarely seen anyone really want this number for specific folders. But if your content is large number of small files there would be a large delta between the total file sizes and what is consumed on the disk.
Getting the physical size on disk requires you to know the cluster size used, which is typically 4096. If you assume 4096 you can use the following to get the size used on disk.
((sum of (((integer ceiling of ((size of it) as floating point/4096))) of descendants of it of folder “c:\temp” as integer)) * 4096)
The standard warning has been to not do this type of inspect very often with a property.
(imported comment written by jeko1791)
To expand on the question here, I’m trying to determine the “Size on Disk” of a compressed folder, as opposed to the “Size” of that folder uncompressed. We have a compressed folder (out_dr) that shows 564 MB for “Size” and 322 MB for “Size on Disk”, since it is compressed. I want to be able to tell what the Size on Disk is for this compressed folder, but all the queries I’ve seen below return the 564 MB Size.
Any ideas?
q: ((sum of ((integer ceiling of ((size of it) as floating point/4096)) of descendants of it of folder (pathname of folder “out_dr” of drives whose (type of it = “DRIVE_FIXED”)) as integer)) * 4096/1024/1024)
A: 564
q: compressed of folder (pathname of folder “out_dr” of drives whose (type of it = “DRIVE_FIXED”))
A: True
q: ((sum of sizes of descendants of folder (pathname of folder “out_dr” of drives whose (type of it = “DRIVE_FIXED”)))/1024/1024) as string
A: 564