diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-03 15:35:00 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-03 15:35:00 +0200 |
commit | de98e0b232509d5f40c135d540a70e415272ff85 (patch) | |
tree | a79222a5b58484ab3b80d18efcaaa7ccc4769b33 /node_modules/compress-commons/lib | |
parent | e0c9d480a73fa629c1e4a47d3e721f1d2d345406 (diff) | |
download | wallet-core-de98e0b232509d5f40c135d540a70e415272ff85.tar.xz |
node_modules
Diffstat (limited to 'node_modules/compress-commons/lib')
-rw-r--r-- | node_modules/compress-commons/lib/archivers/zip/unix-stat.js | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/node_modules/compress-commons/lib/archivers/zip/unix-stat.js b/node_modules/compress-commons/lib/archivers/zip/unix-stat.js new file mode 100644 index 000000000..d8d27c8b3 --- /dev/null +++ b/node_modules/compress-commons/lib/archivers/zip/unix-stat.js @@ -0,0 +1,53 @@ +/**
+ * node-compress-commons
+ *
+ * Copyright (c) 2014 Chris Talkington, contributors.
+ * Licensed under the MIT license.
+ * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT
+ */
+module.exports = {
+ /**
+ * Bits used for permissions (and sticky bit)
+ */
+ PERM_MASK: 4095, // 07777
+
+ /**
+ * Bits used to indicate the filesystem object type.
+ */
+ FILE_TYPE_FLAG: 61440, // 0170000
+
+ /**
+ * Indicates symbolic links.
+ */
+ LINK_FLAG: 40960, // 0120000
+
+ /**
+ * Indicates plain files.
+ */
+ FILE_FLAG: 32768, // 0100000
+
+ /**
+ * Indicates directories.
+ */
+ DIR_FLAG: 16384, // 040000
+
+ // ----------------------------------------------------------
+ // somewhat arbitrary choices that are quite common for shared
+ // installations
+ // -----------------------------------------------------------
+
+ /**
+ * Default permissions for symbolic links.
+ */
+ DEFAULT_LINK_PERM: 511, // 0777
+
+ /**
+ * Default permissions for directories.
+ */
+ DEFAULT_DIR_PERM: 493, // 0755
+
+ /**
+ * Default permissions for plain files.
+ */
+ DEFAULT_FILE_PERM: 420 // 0644
+};
\ No newline at end of file |