File Preprocessor Hook -file_object path property required?

Hi,

I am using the preprocessor hook to scan and change the GCODE file uploaded. Actually I am reading the temporally file uploaded (the original one) from file_object (octoprint.filemanager β€” OctoPrint master documentation) property "path" expecting DiskFileWrapper class. But it seems that some plugins adding files returning not the DiskFileWrapper but instead the AbstractFileWrapper or something else. There property "path" is missing which resulting into an exception with my plugin.

The reason I have to do a "scan" of the file is to set some common settings I need to do the line processing. The necessary information is not located at the top of every GCODE file.

https://docs.octoprint.org/en/master/plugins/hooks.html#octoprint-filemanager-preprocessor

Does anybody knows what are the expected classes, is AbstractFileWrapper fine or this an issue caused by other plugins I ran into?

Cheers,
Nils