How do I mimic the Assets->Reimport menu item?

I need to programmatically recreate what Assets->Reimport does.

    [MenuItem ("Assets/Seriously. Reimport")]
static void ReimportJeez() {
	UnityEngine.Object obj = Selection.activeObject;
	string path = AssetDatabase.GetAssetPath(obj);

	AssetDatabase.ImportAsset(path, ImportAssetOptions.ForceUpdate | ImportAssetOptions.ImportRecursive);

This does not work. Select a folder and choose the menu item and according to the console log the only thing that gets touched is the folder that is selected. The recursive option doesn't seem to be doing anything.

I just looked into this, and it turns out that we have just defined the value of the ImportAssetOptions.ImportRecursive flag wrong. It's currently defined as 128, but needs to be 256. I'll make sure this is fixed in 2.6.1, in the meantime, instead of ImportAssetOptions.ImportRecursive, (256 as ImportAssetOptions) should work.

I am thinking maybe you can't do recursive on that path (/Assets/MyAsset.asset) but need to call the recursive function on the folder it exists in. I don't know them from the top of my head but I think System.IO.Path and System.IO.FileInfo has all the methods you need to easily extract the path to the folder the asset is inside.