Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95182566
settings.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Dec 13, 12:57
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Dec 15, 12:57 (2 d)
Engine
blob
Format
Raw Data
Handle
22945816
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
settings.js
View Options
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
const
path
=
require
(
"path"
);
const
fsStat
=
require
(
"@nodelib/fs.stat"
);
const
fs
=
require
(
"./adapters/fs"
);
class
Settings
{
constructor
(
_options
=
{})
{
this
.
_options
=
_options
;
this
.
followSymbolicLinks
=
this
.
_getValue
(
this
.
_options
.
followSymbolicLinks
,
false
);
this
.
fs
=
fs
.
createFileSystemAdapter
(
this
.
_options
.
fs
);
this
.
pathSegmentSeparator
=
this
.
_getValue
(
this
.
_options
.
pathSegmentSeparator
,
path
.
sep
);
this
.
stats
=
this
.
_getValue
(
this
.
_options
.
stats
,
false
);
this
.
throwErrorOnBrokenSymbolicLink
=
this
.
_getValue
(
this
.
_options
.
throwErrorOnBrokenSymbolicLink
,
true
);
this
.
fsStatSettings
=
new
fsStat
.
Settings
({
followSymbolicLink
:
this
.
followSymbolicLinks
,
fs
:
this
.
fs
,
throwErrorOnBrokenSymbolicLink
:
this
.
throwErrorOnBrokenSymbolicLink
});
}
_getValue
(
option
,
value
)
{
return
option
!==
null
&&
option
!==
void
0
?
option
:
value
;
}
}
exports
.
default
=
Settings
;
Event Timeline
Log In to Comment