|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
321 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | const fs = require('fs');
|
|---|
| 3 | const os = require('os');
|
|---|
| 4 |
|
|---|
| 5 | const tempDirectorySymbol = Symbol.for('__RESOLVED_TEMP_DIRECTORY__');
|
|---|
| 6 |
|
|---|
| 7 | if (!global[tempDirectorySymbol]) {
|
|---|
| 8 | Object.defineProperty(global, tempDirectorySymbol, {
|
|---|
| 9 | value: fs.realpathSync(os.tmpdir())
|
|---|
| 10 | });
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | module.exports = global[tempDirectorySymbol];
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.