From 45d8bb642ebb1fcf397431caabfa66677316ae13 Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Thu, 19 Jan 2023 10:13:53 +0100 Subject: [PATCH] fix encoding issues on ls --- pupy/packages/windows/all/ntfs_streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())