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
e4a3e89c
Commit
e4a3e89c
authored
Jan 27, 2017
by
project
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
12b818e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
bss_handler.js
storage-service/lib/bss_handler.js
+13
-3
No files found.
storage-service/lib/bss_handler.js
View file @
e4a3e89c
...
@@ -10,7 +10,7 @@ function BSSHandler(prm)
...
@@ -10,7 +10,7 @@ function BSSHandler(prm)
BSSHandler
.
prototype
.
filepath
=
function
()
BSSHandler
.
prototype
.
filepath
=
function
()
{
{
return
this
.
repos_dir
+
'/'
+
this
.
name
+
'.bss'
;
return
this
.
repos_dir
+
'/'
+
name2path
(
this
.
name
)
+
'.bss'
;
}
}
BSSHandler
.
prototype
.
exists
=
function
()
BSSHandler
.
prototype
.
exists
=
function
()
...
@@ -19,7 +19,17 @@ BSSHandler.prototype.exists = function()
...
@@ -19,7 +19,17 @@ BSSHandler.prototype.exists = function()
return
path
.
existsSync
(
fp
);
return
path
.
existsSync
(
fp
);
}
}
BSSHandler
.
prototype
.
open
=
function
()
BSSHandler
.
prototype
.
open
=
function
(
cb
)
{
{
BinStream
.
open
(
this
.
filepath
,
function
(
err
,
bss
){
if
(
!
err
){
this
.
bss
=
bss
;
}
cb
(
err
);
});
}
function
name2path
(
n
){
return
n
.
split
(
'.'
).
join
(
'/'
);
}
}
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