Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
keeleliin-wrapper
Commits
40360d25
Commit
40360d25
authored
Sep 15, 2015
by
priit
Browse files
Utiliidi töö katkestamine
parent
7be6541e
Changes
1
Hide whitespace changes
Inline
Side-by-side
wrapper/archiveExtractor.js
View file @
40360d25
...
...
@@ -56,7 +56,7 @@ function ArchiveExtractor() {
count
++
;
}
//
logger.debug('Countx: ' + count);
logger
.
debug
(
'
Countx:
'
+
count
);
mkdirp
(
directory
,
function
(
err
)
{
if
(
err
)
{
...
...
@@ -68,7 +68,7 @@ function ArchiveExtractor() {
if
(
isFile
&&
isTextOrBinary
.
isTextSync
(
entry
.
path
))
{
var
uniqid
=
randomstring
.
generate
(
10
);
var
filePath
=
path
.
join
(
directory
,
uniqid
);
//
logger.debug('Filepath: ' + filePath);
logger
.
debug
(
'
Filepath:
'
+
filePath
);
entry
.
pipe
(
fs
.
createWriteStream
(
filePath
)).
on
(
'
close
'
,
function
()
{
session
.
addOutputFile
(
uniqid
,
{
type
:
'
output
'
,
...
...
@@ -88,7 +88,7 @@ function ArchiveExtractor() {
});
})
.
on
(
'
close
'
,
function
()
{
//
logger.debug('Count: ' + count);
logger
.
debug
(
'
C
lose c
ount:
'
+
count
);
if
(
count
==
0
)
{
session
.
message
=
Session
.
messages
.
OK
;
...
...
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