× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Nice.

I am also creating an IFS crawler as a Native .Net C# example. Much of the granular dir and file handling functionality is built-in to .Net.

My example crawled about 200000 files in 2 minutes, although I am going to add a thread throttle setting since it chews up as much CPU as it can get 😊

Found a gotcha though because the DIR list functions will iteratively crawl directories set up as symbolic links so I had to put an extra check in for that to prevent endless loops when crawling symbolic links.

Regards,
Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com
----------------------------------------------------------------------
message: 4
date: Thu, 10 Jan 2019 22:03:15 +0000
from: Kevin Bucknum <Kevin@xxxxxxxxxxxxxxxxxxx>
subject: RE: How to obtain size of ifs directories and sub-directories

Just to have an open source method also. If you have IBM YUM binaries installed and use the file tools they have, you can get something like the below. No better than the queries from RTVDSKINF, just wanted to put another method into the archives. Paths are hard coded in case you don't have these as your default binaries.
bash-4.4$ /qopensys/pkgs/bin/du -h --exclude=Medtron --exclude=QSYS.LIB --exclude=QIBM --exclude=QNTC --exclude=QFileSvr.400 | /qopensys/pkgs/bin/sort -h > ~/medtron_dir_size.txt

produces a file like this (this is the bottom of the file) Subdirectories are included in parent directories. So /kevin has 25g total, and 21g of that is in the cmc_os subdirectory.

11G./imagecatalog
11G./imagecatalog/ptfs
13G./Impact/Original Packs from Clients/Archives - Combined ERA Files
13G./spool/Prior Years/2013
13G./spool/Prior Years/2014
14G./Impact/Archives - MDS9S Not On Split Rpt
14G./Impact/Archives - MDS9S Not On Split Rpt/2016
15G./Impact/Original Packs from Clients/Archives - DScan
15G./mirth/mirthdb
15G./mirth/mirthdb/seg0
17G./mirth
19G./neic
19G./spool/ur
21G./Impact/Original Packs from Clients/Archives - ERA
21G./kevin/cmc_os
24G./Impact/Archives - Packs/2017
25G./kevin
30G./Impact/Archives - Combined ERA Files
30G./spool/Prior Years
32G./neicspool
34G./Impact/Archives - DScan
41G./Impact/Original Packs from Clients/Archives - Packs
51G./Impact/Archives - ERA
65G./spool
91G./Impact/Original Packs from Clients
116G./Impact/Archives - Packs
344G./Impact
525G.





As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.