Comments (7)
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.
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.
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.
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.
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.
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.
Should no longer be an issue since the file management was completely revamped with 1.2.x
from octoprint.
Related Issues (20)
- [Request] Two-factor authentication (2FA/TFA) HOT 9
- Raspberry pi 5 support HOT 2
- [Request] filter setting in the printer profile for some temperatures like heatbrake X on prusa MK4 HOT 3
- Add "Do it" Buttons... everywhere... and I mean... everywhere... HOT 2
- Install Error on Fedora 39 HOT 7
- [RC Feedback] Feedback on the 1.10.0rc1 Release Candidate HOT 24
- [1.10.0rc1] drag and drop upload not working HOT 9
- [1.10.0rc1] New versioning module doesn't support CLI welcome banner code deployed with OctoPi HOT 5
- [1.10.0rc1] Appkeys plugin logs error HOT 6
- [1.10.0rc1] Virtual printer can't be disabled HOT 3
- [1.10.0rc1] No warning when overwriting a file on upload HOT 4
- Embedded devices should not be phoning home, nor a priest for the cult of notifications HOT 2
- Uploading a file into a folder through "Upload to SD" causes an error HOT 2
- "Fake Acknowledgement" required to get past bad serial parses? HOT 4
- [RC Feedback] Feedback on the 1.10.0rc2 Release Candidate HOT 16
- When the service starts, a test file will be created in the directory to ensure that the directory is normal. Can the fixed file name be changed to a random file name? HOT 3
- [Request] extend onBeforePrintStart to include selected file data
- Can not upload multiple files if "Upload to SD" (aka streaming) is disabled via uncheckiing "Enable SD supprt" HOT 1
- gcode analysis fails with IndexError exception on OrcaSlicer produced gcode HOT 2
- [Request] Ability to disable all log files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint.