Repository navigation
Releases: VisualBoy/PrusaConnect-Bridge
Releases · VisualBoy/PrusaConnect-Bridge
Release list
0.1.4c
Refactor FileSystemNode usage to dictionaries for SDK v0.8.1+ compatibility
The Prusa Connect SDK (v0.8.1 and later) replaced the custom FileSystemNode class and NodeType enum with standard Python dictionaries for representing filesystem entries.
This commit updates the decorated_handle_send_info function in octoprint_prusaconnectbridge/__init__.py:
- Removes the import of
FileSystemNodeandNodeType. - Modifies the
build_fs_treehelper function to create and populate dictionaries instead ofFileSystemNodeobjects. Node types 'DIR' and 'FILE' are now used as string literals. - Assumes the SDK's
self.prusa_printer.fs.rootattribute is now expected to be a dictionary representing the root of the filesystem, and that itschildrenkey will hold the list of file/folder dictionaries. - Direct assignments to
self.prusa_printer.fs.fs_free_spaceandself.prusa_printer.fs.fs_total_spaceare maintained.
These changes are based on the description of the SDK's refactoring. Further validation of the exact interaction API with Printer.fs may be needed if issues arise in testing with the new SDK version.