🐛 Fix SD Card printing

Closes #4082
This commit is contained in:
Gina Häußge committed 2021-04-06 20:09:39 +02:00
1 parent 6e5568551f
commit 54c5cd26ab
1 file changed
+7 -3
+7 -3
View File
@@ -1220,9 +1220,13 @@ def _getCurrentFile():
def _validate(target, filename):
return filename == "/".join(
map(lambda x: fileManager.sanitize_name(target, x), filename.split("/"))
)
if target == FileDestinations.SDCARD:
# we make no assumptions about the shape of valid SDCard file names
return True
else:
return filename == "/".join(
map(lambda x: fileManager.sanitize_name(target, x), filename.split("/"))
)
class WerkzeugFileWrapper(octoprint.filemanager.util.AbstractFileWrapper):