Inquire if a file exists
-
With M470, M471 and now since fw 3.5 we have M472 for file operations. It would be nice to have something like
M473 P"test" set var.file_status = {output}
which checks if the file "test" exists and assigns the variable file_status to the output (integer 0/1 or boolean true/false)
-
@wschadow see the filexists function, https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands#functions.
-
@dc42 Thanks! I looked for that in all other places Thanks, exactly what I was looking for and works nicely.