Skip to content

.gcode files from SD card non listed in Files section #5068

@mnolletti69

Description

@mnolletti69

The problem

I have a strange issue with the reading of files from the SD card:

  • Long filenames with extension .gco are listed
  • Long filenames with extension .gcode are NOT listed
  • If I only change the extension from .gcode to .gco it will be listed
  • In terminal "M20 L T" list ALL files with short and long names
    Executing a command dir /X in a command prompt I noticed that the short 8.3 names now contains ~ character also in the extension (MyLongFileName.gcode -> MYLONG~1.GC~)
    This is my guess:
    When long names are enabled, the parsing of the long names is executed correctly from the "M20 L T" command but the filtering for printables files is executed on the 8.3 name. If this is the case then .CG~ files are filtered out as non valid printable files.

Did the issue persist even in safe mode?

Yes, it did persist

If you could not test in safe mode, please state why ("currently printing" is NOT an excuse!)

No response

Version of OctoPrint

1.10.2

Operating system running OctoPrint

1.0.0, running on Raspberry Pi 3 Model B Plus Rev 1.3

Printer model & used firmware incl. version

Ender 3 with Marlin 2.1.2.4 (also with 1.1.9)

Browser and version of browser, operating system running browser

All browser, Windows 11

Checklist of files to include below

  • Systeminfo Bundle (always include!)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)
  • Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
  • GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)

Additional information & file uploads

octoprint-systeminfo-20241017000225.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue describes a bugdoneDone but not yet released

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions