1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-26 05:27:35 +02:00

diagnostics bug fix

This commit is contained in:
Braun Patrik 2017-07-15 08:01:16 +02:00
parent 2eddf2c314
commit 0781f54c90

View File

@ -43,10 +43,6 @@ export class ConfigDiagnostics {
static async testThumbnailFolder(folder: string) {
await new Promise((resolve, reject) => {
folder = ProjectPath.getAbsolutePath(folder);
if (!fs.existsSync(folder)) {
reject("Thumbnail folder not exists: '" + folder + "'");
}
fs.access(folder, fs.constants.W_OK, (err) => {
if (err) {
reject({message: "Error during getting write access to temp folder", error: err});
@ -58,7 +54,6 @@ export class ConfigDiagnostics {
static async testImageFolder(folder: string) {
await new Promise((resolve, reject) => {
folder = ProjectPath.getAbsolutePath(folder);
if (!fs.existsSync(folder)) {
reject("Images folder not exists: '" + folder + "'");
}