Fix #1891: Missing syspath in beet stats -e

This commit is contained in:
Adrian Sampson 2016-02-22 00:02:58 -08:00
parent 822fc5ff67
commit 59e54d1792
2 changed files with 5 additions and 2 deletions

View file

@ -1257,7 +1257,7 @@ def show_stats(lib, query, exact):
for item in items:
if exact:
try:
total_size += os.path.getsize(item.path)
total_size += os.path.getsize(syspath(item.path))
except OSError as exc:
log.info('could not get size of {}: {}', item.path, exc)
else:

View file

@ -4,7 +4,10 @@ Changelog
1.3.18 (in development)
-----------------------
Changelog goes here!
Fixes:
* Fix a problem with the :ref:`stats-cmd` in exact mode when filenames on
Windows use non-ASCII characters. :bug:`1891`
1.3.17 (February 7, 2016)