#Mainsail file path?

5 messages · Page 1 of 1 (latest)

swift storm
#

Kinda dumb question, but why is it that on Mainsail my gcode files are different from what they are in the pi file system via WINScp or something? But they do not work if the same exact file is not in both places. Same thing goes for config files. I would assume if I saved a file to my config, or gcode spaces on Mainsail, it would go to the proper directory on the pi. That doesn't seem to be the case.

earnest hull
# swift storm Kinda dumb question, but why is it that on Mainsail my gcode files are different...

Mainsail doesn't now the "real" path in your filesystem, it only gets a root dir list from moonraker. That you have two different directories however isn't default behaviour.
Normally Gcodes are saved in:

~/gcode_files/
or
~/printer_data/gcodes/ (in newer moonraker installations)
```which mainsail access through the "gcodes" root:
```/server/files/list?root=gcodes```

same applies to config files:

~/klipper_config/
or
~/printer_data/config

```/server/files/list?root=config```

So if you upload a file to "config" via mainsail it only sends that file to moonraker and moonraker handles the saving to a specific path part. So indeed if you upload a file in mainsail it should go to the proper directory on the pi.

For older moonraker installations (but updated to the newest version) however it's normal to have both ~/gcode_files/ and ~/printer_data/gcodes, but the later is only a symlink not a real directory. The files still only exist in ~/gcode_files/. 

can you clearify what path you are talking about, where you have to have exact duplicates in?
swift storm
earnest hull
#

can you post output of following commands executed over ssh:

ls ~/
ls -la ~/printer_data/
swift storm