mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[feature-107] local playlist filtering & can select playlist to perform actions : export, delete, sync
This commit is contained in:
@@ -36,8 +36,7 @@ export class Archive {
|
||||
|
||||
public addDirectory(path: string, destPath?: string | false): void {
|
||||
this.directories.push(path);
|
||||
destPath = destPath === false ? false : _path.basename(path);
|
||||
this.archive.directory(path, destPath);
|
||||
this.archive.directory(path, destPath ?? _path.basename(path));
|
||||
}
|
||||
|
||||
public addFile(path: string, destPath?: string): void {
|
||||
@@ -46,13 +45,14 @@ export class Archive {
|
||||
this.archive.file(path, { name: destPath });
|
||||
}
|
||||
|
||||
public finalize(): Observable<Progression> {
|
||||
const progress: Progression = {
|
||||
public finalize(): Observable<Progression<string>> {
|
||||
const progress: Progression<string> = {
|
||||
total: 0,
|
||||
current: 0,
|
||||
data: this.output,
|
||||
};
|
||||
|
||||
return new Observable<Progression>(observer => {
|
||||
return new Observable<Progression<string>>(observer => {
|
||||
(async () => {
|
||||
progress.total = await this.loadTotalFiles();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user