Postprocessing fixes:

for files on network shares
  sanity check for manual post-process to prevent errors from names
headphones doesn't understand
This commit is contained in:
sbuser
2011-08-02 07:47:01 -05:00
parent 5c4641c130
commit 576d3b5aee
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