Skip to content
Browse files

Merge pull request #717 from Renha/devel

Bugfix for Invalid cross-device link on Linux when /tmp is on another fs
  • Loading branch information...
foosel committed Jan 16, 2015
2 parents 9452ba4 + 6cf0550 commit 19df1aed17346943ac6245291b8c6bb76c3c3573
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/octoprint/util/
@@ -9,6 +9,7 @@
import re
import tempfile
import logging
import shutil
from flask import make_response

from octoprint.settings import settings, default_settings
@@ -182,7 +183,8 @@ def safeRename(old, new, throw_error=False):
raise e
# on anything else than windows it's ooooh so much easier...
os.rename(old, new)
# because of shutil's high level, maybe win32-specific code isn't needed anymore
shutil.move(old, new)

def silentRemove(file):

0 comments on commit 19df1ae

Please sign in to comment.
You can’t perform that action at this time.