Can One Make Unity Update Assets

So I have a script that generates a file in the Unity Asset folder.

I know that when Unity receives focus, it checks and updates new things. I want to make Unity do this via script, so that once the file is generated it can be added to the Unity Project window immediately.

Any ideas?

A short look into the scripting reference let you find AssetDatabase.ImportAsset :wink: