Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
Is there a way to determine Folder Sizes on the IFS? Any Help appreciated. Jeff
You mean total size of all the files in that folder?
If you have the ifsFileSize API I wrote or using the STAT api in the C runtime, you can determine each file's size within a directory. I've also written articles on recursing directories and reading each file name as if you were processing a database file's records. Then you could apply the STAT APi to each file that's read. But there's also Directory/Folder overhead.
What is your specific goal?
Gosh, what a dope I am!
RTVDIRINF DIR('/home/cozzi')
PRTDIRINF *DIR
Did a BING/GOOGLE Search for IFS Folder Size and found the Command QRYIFSLIB from
http://www.itjungle.com/fhg/fhg111407-story03.html
And followed the how to in there.
Note, best to submit the command
CALL PGM(QRYIFSLIB) PARM('/*' '\s' '\X:*NONLOCAL') as it may take awhile for it to run.
Jeff