0

I know that there is util lsof which I can use to get a list of all opened files in specified directory.

But I want to get such info from my osx app. Can't find any lsof-like function which I can use. Any osx API that can do the same as it does lsof ?

main lsof doesn't shows any headed file which I can include to my app.

I can run lsof via NSTask but it doesn't feels like the right way.

Thanks

ɢʀᴜɴᴛ
  • 32,025
  • 15
  • 116
  • 110
DoN1cK
  • 595
  • 7
  • 22

0 Answers0