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:
parent
2eddf2c314
commit
0781f54c90
@ -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 + "'");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user