Merge pull request #176 from sbuser/post-processor-fixes

Postprocessing fixes: fix for files in windows with an smb name, added sanity checks for manual post-processing
This commit is contained in:
rembo10
2011-08-02 11:18:22 -07:00
3 changed files with 31 additions and 24 deletions
+3 -1
View File
@@ -162,7 +162,9 @@ def syspath(path, pathmod=None):
path = path.decode('utf8', 'replace')
# Add the magic prefix if it isn't already there
if not path.startswith(u'\\\\?\\'):
# Not sure what the magic prefix he was adding actually does but if it's a network path
# it breaks when we add the prefix - ignore the addition if the \\ is already there
if not path.startswith(u'\\\\?\\') and not path.startswith(u'\\'):
path = u'\\\\?\\' + path
return path