@JimB answered the question in comments:
No it’s not builtin, and it needs to be filesystem specific. If you don’t want to keep that dependency, you will need to rewrite what it does.