From 2cafc6114d77ab292ad1723f8d557015d4d4186f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 20 Jul 2013 16:20:34 +0200 Subject: [PATCH] Just in case we'll use subfolders in the future... --- octoprint/gcodefiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint/gcodefiles.py b/octoprint/gcodefiles.py index d81acde..704a7b3 100644 --- a/octoprint/gcodefiles.py +++ b/octoprint/gcodefiles.py @@ -123,7 +123,7 @@ class GcodeManager: if absolutePath is None: return None - basename = os.path.basename(absolutePath) + basename = self._getBasicFilename(absolutePath) if basename in self._metadata.keys(): # delete existing metadata entry, since the file is going to get overwritten del self._metadata[basename]