mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-10 11:10:35 +02:00
Remove listDirectory check
This commit is contained in:
parent
b64f66c253
commit
ba8ebca21c
@ -72,16 +72,6 @@ export class GalleryMWs {
|
||||
}
|
||||
|
||||
try {
|
||||
const directory = await ObjectManagers.getInstance()
|
||||
.GalleryManager.listDirectory(directoryName,
|
||||
parseInt(req.query[QueryParams.gallery.knownLastModified] as string, 10),
|
||||
parseInt(req.query[QueryParams.gallery.knownLastScanned] as string, 10));
|
||||
|
||||
if (directory == null) {
|
||||
req.resultPipe = new ContentWrapper(null, null, true);
|
||||
return next();
|
||||
}
|
||||
|
||||
res.set('Content-Type', 'application/zip');
|
||||
res.set('Content-Disposition', 'attachment; filename=Gallery.zip');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user