Skip to content

Commit c0cfb4f

Browse files
committed
zip: add isUnixSymlink.
1 parent 5dacf56 commit c0cfb4f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/archivers/zip/zip-archive-entry.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ ZipArchiveEntry.prototype.isDirectory = function() {
218218
return this.getName().slice(-1) === '/';
219219
};
220220

221+
ZipArchiveEntry.prototype.isUnixSymlink = function() {
222+
return (this.getUnixMode() & constants.S_IFLINK) === constants.S_IFLINK;
223+
};
224+
221225
ZipArchiveEntry.prototype.isZip64 = function() {
222226
return this.csize > constants.ZIP64_MAGIC || this.size > constants.ZIP64_MAGIC;
223227
};

0 commit comments

Comments
 (0)