mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Remove listDirectory check
This commit is contained in:
parent
b64f66c253
commit
ba8ebca21c
@ -72,16 +72,6 @@ export class GalleryMWs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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-Type', 'application/zip');
|
||||||
res.set('Content-Disposition', 'attachment; filename=Gallery.zip');
|
res.set('Content-Disposition', 'attachment; filename=Gallery.zip');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user