diff --git a/pupy/packages/windows/all/ntfs_streams.py b/pupy/packages/windows/all/ntfs_streams.py index 9c7dc3a9..848b0073 100644 --- a/pupy/packages/windows/all/ntfs_streams.py +++ b/pupy/packages/windows/all/ntfs_streams.py @@ -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())