Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fordecyt_2019
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
fordecyt_2019
Commits
d53a469f
Commit
d53a469f
authored
Aug 15, 2019
by
Anne Blankert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove logging
parent
b2181b39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
dircache.js
utils/dircache.js
+2
-4
No files found.
utils/dircache.js
View file @
d53a469f
...
@@ -25,8 +25,6 @@ module.exports = class DirCache {
...
@@ -25,8 +25,6 @@ module.exports = class DirCache {
setCachedFile
(
dir
,
key
,
data
)
{
setCachedFile
(
dir
,
key
,
data
)
{
const
dirName
=
path
.
join
(
this
.
cacheRoot
,
dir
);
const
dirName
=
path
.
join
(
this
.
cacheRoot
,
dir
);
const
filePath
=
path
.
join
(
dirName
,
key
);
const
filePath
=
path
.
join
(
dirName
,
key
);
console
.
log
(
`cache dirname:
${
dirName
}
`
);
console
.
log
(
`filePath:
${
filePath
}
`
);
fs
.
mkdirSync
(
dirName
,
{
recursive
:
true
});
fs
.
mkdirSync
(
dirName
,
{
recursive
:
true
});
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
fs
.
writeFile
(
filePath
,
data
,
(
err
)
=>
{
fs
.
writeFile
(
filePath
,
data
,
(
err
)
=>
{
...
@@ -55,7 +53,7 @@ function cacheDirName(params) {
...
@@ -55,7 +53,7 @@ function cacheDirName(params) {
const
dirname
=
cacheDirName
(
params
);
const
dirname
=
cacheDirName
(
params
);
const
filename
=
cacheFileName
(
query
);
const
filename
=
cacheFileName
(
query
);
console
.
log
(
`getCache:
${
dirname
}
`
);
//
console.log(`getCache: ${dirname}`);
return
fsPromises
.
readFile
(
`
${
dirname
}
/
${
filename
}
`
)
return
fsPromises
.
readFile
(
`
${
dirname
}
/
${
filename
}
`
)
.
then
(
data
=>
data
)
.
then
(
data
=>
data
)
.
catch
(
error
=>
null
);
.
catch
(
error
=>
null
);
...
@@ -65,7 +63,7 @@ function cacheDirName(params) {
...
@@ -65,7 +63,7 @@ function cacheDirName(params) {
const
dirname
=
cacheDirName
(
params
);
const
dirname
=
cacheDirName
(
params
);
const
filename
=
cacheFileName
(
query
);
const
filename
=
cacheFileName
(
query
);
console
.
log
(
`setCache:
${
dirname
}
`
);
//
console.log(`setCache: ${dirname}`);
return
fsPromises
.
writeFile
(
`
${
dirname
}
/
${
filename
}
`
,
data
)
return
fsPromises
.
writeFile
(
`
${
dirname
}
/
${
filename
}
`
,
data
)
.
then
(()
=>
{
return
})
.
then
(()
=>
{
return
})
.
catch
(
err
=>
err
);
.
catch
(
err
=>
err
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment