Filesystem sync function in SS4

Silverstripe Version:
ss4

Question:

Can you please help me which functions can be replaced for Filesystem sync() function?

// Include any relevant code. If you have a lot of code, link to a gist instead.