Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
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
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
9ac434ca
Commit
9ac434ca
authored
Jul 13, 2017
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage list
parent
c5766091
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
storage-utils.js
storage-service/lib/storage-utils.js
+26
-0
No files found.
storage-service/lib/storage-utils.js
0 → 100644
View file @
9ac434ca
var
path
=
require
(
'path'
);
var
fs
=
fs
||
require
(
'fs'
)
var
bss_walk_sync
=
function
(
dir
,
filelist
,
cat
)
{
files
=
fs
.
readdirSync
(
dir
);
filelist
=
filelist
||
[];
cat
=
cat
||
''
;
files
.
forEach
(
function
(
file
)
{
if
(
fs
.
statSync
(
path
.
join
(
dir
,
file
)).
isDirectory
())
{
var
base_cat
=
cat
+
file
+
'.'
filelist
=
bss_walk_sync
(
path
.
join
(
dir
,
file
),
filelist
,
base_cat
);
}
else
{
if
(
path
.
extname
(
file
)
==
'.bss'
){
var
storage
=
cat
+
path
.
basename
(
file
,
'.bss'
);
filelist
.
push
(
storage
);
}
}
});
return
filelist
;
};
module
.
exports
.
list
=
function
(
repo
)
{
return
bss_walk_sync
(
repo
)
}
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