Sha256: 2d12673b5c138ef9d811765d3f5a7215b124270bb6145fdfe5b978bb3b1091ec

Contents?: true

Size: 1.53 KB

Versions: 69

Compression:

Stored size: 1.53 KB

Contents

// Objects with this prototype are used as the public representation of a file
var path = require('path');

var FileDetails = function (directoryEntry) {
    // TODO: Add 'extra field' support

    this._offset = 0;
    this._maxSize = 0;

    this.parent = path.dirname(directoryEntry.fileName);
    this.filename = path.basename(directoryEntry.fileName);
    this.path = path.normalize(directoryEntry.fileName);

    this.type = directoryEntry.fileAttributes.type;
    this.mode = directoryEntry.fileAttributes.mode;
    this.compressionMethod = directoryEntry.compressionMethod;
    this.modified = directoryEntry.modifiedTime;
    this.crc32 = directoryEntry.crc32;
    this.compressedSize = directoryEntry.compressedSize;
    this.uncompressedSize = directoryEntry.uncompressedSize;
    this.comment = directoryEntry.fileComment;

    this.flags = {
        encrypted: directoryEntry.generalPurposeFlags.encrypted,
        compressionFlag1: directoryEntry.generalPurposeFlags.compressionFlag1,
        compressionFlag2: directoryEntry.generalPurposeFlags.compressionFlag2,
        useDataDescriptor: directoryEntry.generalPurposeFlags.useDataDescriptor,
        enhancedDeflating: directoryEntry.generalPurposeFlags.enhancedDeflating,
        compressedPatched: directoryEntry.generalPurposeFlags.compressedPatched,
        strongEncryption: directoryEntry.generalPurposeFlags.strongEncryption,
        utf8: directoryEntry.generalPurposeFlags.utf8,
        encryptedCD: directoryEntry.generalPurposeFlags.encryptedCD
    };

};

module.exports = FileDetails;

Version data entries

69 entries across 69 versions & 2 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/decompress-zip/lib/file-details.js
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/decompress-zip/lib/file-details.js