I am working on a module to unzip the contents of my file field after I have submitted the node. I originally tried to do this in hook_node_insert but this did not work for me because my file field has a custom file path and at the time of hook_node_insert the file is still in the default upload location and it is then moved to the custom file path at some later point.
I also though maybe I could implement my unzipping code hook_file_move (which gets called when the file is moved to the custom file path) but it seems that there is no way to verify that the node type from hook_file_move.
Is there some better hook to implement this unzipping code where I can both verify the type of the node and late enough in the content creation process that the file will have been moved to the location of the custom path.