diff --git a/lib/zip/uncompress_stream.js b/lib/zip/uncompress_stream.js
index bbdd218..a332179 100644
--- a/lib/zip/uncompress_stream.js
+++ b/lib/zip/uncompress_stream.js
@@ -98,8 +98,8 @@ class ZipUncompressStream extends UncompressBaseStream {
             entry.fileName = iconv.decode(entry.fileName, this._zipFileNameEncoding);
           }
         }
-        // directory file names end with '/'
-        const type = /\/$/.test(entry.fileName) ? 'directory' : 'file';
+        // directory file names end with '/' (for Linux and macOS) or '\' (for Windows)
+        const type = /[\\\/]$/.test(entry.fileName) ? 'directory' : 'file';
         const name = entry.fileName = this[STRIP_NAME](entry.fileName, type);
 
         const header = { name, type, yauzl: entry, mode };