Get size of unicode files (bug fix)
This commit is contained in:
parent
a4b35431fa
commit
ad76b00d21
@ -368,6 +368,7 @@ class SyncplayClient(object):
|
||||
if not path:
|
||||
return
|
||||
try:
|
||||
path = path.decode('utf-8')
|
||||
size = os.path.getsize(path)
|
||||
except OSError: # file not accessible (stream?)
|
||||
size = 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user