Have path set for SD files and strip leading /
This commit is contained in:
parent
42e54f0fbc
commit
9b6b4a9228
1 changed files with 3 additions and 2 deletions
|
|
@ -1003,8 +1003,9 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
|
|||
|
||||
if location == FileDestinations.SDCARD:
|
||||
full_path = print_job_file
|
||||
name = full_path
|
||||
path = ""
|
||||
if full_path.startswith("/"):
|
||||
full_path = full_path[1:]
|
||||
name = path = full_path
|
||||
origin = FileDestinations.SDCARD
|
||||
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue