Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

unix-stat.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * node-compress-commons
  3. *
  4. * Copyright (c) 2014 Chris Talkington, contributors.
  5. * Licensed under the MIT license.
  6. * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT
  7. */
  8. module.exports = {
  9. /**
  10. * Bits used for permissions (and sticky bit)
  11. */
  12. PERM_MASK: 4095, // 07777
  13. /**
  14. * Bits used to indicate the filesystem object type.
  15. */
  16. FILE_TYPE_FLAG: 61440, // 0170000
  17. /**
  18. * Indicates symbolic links.
  19. */
  20. LINK_FLAG: 40960, // 0120000
  21. /**
  22. * Indicates plain files.
  23. */
  24. FILE_FLAG: 32768, // 0100000
  25. /**
  26. * Indicates directories.
  27. */
  28. DIR_FLAG: 16384, // 040000
  29. // ----------------------------------------------------------
  30. // somewhat arbitrary choices that are quite common for shared
  31. // installations
  32. // -----------------------------------------------------------
  33. /**
  34. * Default permissions for symbolic links.
  35. */
  36. DEFAULT_LINK_PERM: 511, // 0777
  37. /**
  38. * Default permissions for directories.
  39. */
  40. DEFAULT_DIR_PERM: 493, // 0755
  41. /**
  42. * Default permissions for plain files.
  43. */
  44. DEFAULT_FILE_PERM: 420 // 0644
  45. };