When I call (via GET) http://octopi.local/api/files/local, it works as expected.
However, if I call http://octopi.local/api/files/sdcard (or http://octopi.local/api/files/sdcard?recursive=false), I'm witnessing three bugs:
-
deleted files (files staring with ".") and deleted folders (folders starting with ".") are returned.
expected: I expected the API to return only available, non-deleted files. -
even though I'm calling the file API w/o
recursive=true
, my root-level call (whether its http://octopi.local/api/files/sdcard or http://octopi.local/api/files/sdcard?recursive=false) returns all files
expected: I expected only the files and folders at the specified directory to be returned. -
The names are munged. For example, a file with the name of "xyz-half-speed-perimeters.gcode" is being returned as "xyz-ha~2.gcode"
expected: I was expecting the full name to be returned.