Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cuttlefish
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
squidworks
cuttlefish
Commits
11d5652a
Commit
11d5652a
authored
Oct 10, 2019
by
Jake Read
Browse files
Options
Downloads
Patches
Plain Diff
win -> linux
parent
0059337b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
filesys.js
+8
-4
8 additions, 4 deletions
filesys.js
with
8 additions
and
4 deletions
filesys.js
+
8
−
4
View file @
11d5652a
...
...
@@ -6,6 +6,7 @@ module.exports = {
// get a tree: takes the root (relative the process) and returns all branches below,
// includes route-to-root in list
getDirTree
:
(
dir
,
debug
)
=>
{
debug
=
true
let
tld
=
dir
return
new
Promise
((
resolve
,
reject
)
=>
{
// items and count,
...
...
@@ -13,7 +14,7 @@ module.exports = {
let
count
=
0
// recursor,
let
launch
=
(
dir
)
=>
{
if
(
true
)
console
.
log
(
'
GDT launch at
'
,
dir
)
if
(
debug
)
console
.
log
(
'
GDT launch at
'
,
dir
)
// just counting actually,
count
++
fs
.
readdir
(
dir
,
(
err
,
files
)
=>
{
...
...
@@ -23,10 +24,13 @@ module.exports = {
count
--
for
(
file
of
files
)
{
if
(
file
.
includes
(
'
.
'
))
{
if
(
debug
)
console
.
log
(
'
GDT pushing
'
,
`
${
dir
}${
file
}
`
)
list
.
push
(
`
${
dir
.
substring
(
__dirname
.
length
+
tld
.
length
)}
/
${
file
}
`
)
let
listAddition
=
`
${
dir
.
substring
(
__dirname
.
length
+
tld
.
length
)}
/
${
file
}
`
if
(
debug
)
console
.
log
(
'
GDT pushing
'
,
listAddition
)
list
.
push
(
listAddition
)
}
else
{
launch
(
`
${
dir
}${
file
}
`
)
let
launchPoint
=
`
${
dir
}${
file
}
`
if
(
debug
)
console
.
log
(
'
GDT launching
'
,
launchPoint
)
launch
(
launchPoint
)
}
}
if
(
debug
)
console
.
log
(
'
GDT size
'
,
count
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment