Giter VIP home page Giter VIP logo

Comments (7)

foosel avatar foosel commented on May 19, 2024

What do you mean with "files with()"? Files containing these characters?

Also, I wouldn't recommend putting the web interface at a remotely accessible location right now -- it's too easy for someone who doesn't know what he's doing or who wants to harm you to just heat that thing up to 300°C or who knows what else.

from octoprint.

catohagen avatar catohagen commented on May 19, 2024

Yes, ( or ) in filenames, eg. PrintMe(today).gcode

Its just the raspi thats online, printer is not plugged in, I usally babysit when printer is on :)

from octoprint.

foosel avatar foosel commented on May 19, 2024

Follow-up question: Are you trying to delete files that you put manually at that folder location, or ones that you uploaded via OctoPrint?

from octoprint.

catohagen avatar catohagen commented on May 19, 2024

i have a router at home with an usb memorystick thats shared with samba, router is connected(vpn) to my workplace where I have a proper workstation so slicing with Cura is done there, .the usb memorystick home is mounted as a disk on the workstation at work, so Cura can copy the gcode direct to my router, so i slice different stuff when i'm at work, and just copy the files to the sd-card from the router usb disk.
On the raspberrypi I have this usb-storage mounted to /mnt/router-usb, and put this as the upload directory in Octoprint, so i rarely upload files, they are already there.

Reason i get files with () chars is mostly if I need to slice a file over again, i tend to goto thingiverse and download again, new stl in download folder is appended with (1) because it already exists...

from octoprint.

foosel avatar foosel commented on May 19, 2024

A, there we have your problem. OctoPrint sanitizes the filename to make sure nothing weirds gets send over the line and fscks up the installation. By directly copying into the folder, you are circumventing the sanitizing one way (storing the file), but of course the other way (accessing the file) it's still applied and such the operation fails.

Hm... I see your usecase there, but I don't want to get rid of the sanitizing step... I could build a mechanism that monitors the folder and automatically sanitizes the names of files added to it if not already done. That's about the only idea I have right now though.

from octoprint.

catohagen avatar catohagen commented on May 19, 2024

i would assume its just a matter of escaping the filenames so that the rm / delete command finds the file ? just like you would need to do if you work with filenames with special chars or spaces from a .sh script ?

i remember I needed to use a rename routine when I automated download of series I watch, listed all the filenames through a pipe with sed that removed all special chars

from octoprint.

foosel avatar foosel commented on May 19, 2024

Should no longer be an issue since the file management was completely revamped with 1.2.x

from octoprint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.