mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 20:18:25 +02:00
Additional work with archivers
This commit is contained in:
parent
ec716fdf2c
commit
9593da5626
3 changed files with 62 additions and 15 deletions
|
@ -141,11 +141,15 @@ function getExistingFileEntriesBySha1(sha1, cb) {
|
|||
}
|
||||
|
||||
function addNewArchiveFileEnty(fileEntry, filePath, archiveType, cb) {
|
||||
const archiveUtil = ArchiveUtil.getInstance();
|
||||
|
||||
async.series(
|
||||
[
|
||||
function getArchiveFileList(callback) {
|
||||
// :TODO: get list of files in archive
|
||||
return callback(null);
|
||||
archiveUtil.listEntries(filePath, archiveType, (err, entries) => {
|
||||
return callback(err);
|
||||
});
|
||||
}
|
||||
],
|
||||
err => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue