I need to hide the file in finder as well as in spotlight if possible using objective-c or using C calls.
Thanks
You can use:
chflags("/path/to/file", UF_HIDDEN);
to hide any file.
See man chflags(2) for more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With