mirror of https://github.com/n1nj4sec/pupy.git
fix encoding issues on ls
This commit is contained in:
parent
1524cd2ed2
commit
45d8bb642e
|
@ -64,7 +64,7 @@ def get_streams(filename):
|
|||
if not NTFS_STREAMS_API_PRESENT:
|
||||
return []
|
||||
|
||||
if type(filename) == str:
|
||||
if type(filename) == bytes:
|
||||
filename = filename.decode(
|
||||
getfilesystemencoding())
|
||||
|
||||
|
|
Loading…
Reference in New Issue