Skip to content

TagSpaces is an offline, open source, document manager with tagging support

skip loading tmbs for meta folders

Ilian Sapundshiev06b755120e38
diff --git a/app/services/electron-io.js b/app/services/electron-io.js
index e02907d0c..bf6fe5c10 100644
--- a/app/services/electron-io.js
+++ b/app/services/electron-io.js
@@ -316,15 +316,17 @@ export default class ElectronIO {
}
// Loading thumbs for folders
- const folderTmbPath =
- eentry.path +
- AppConfig.dirSeparator +
- AppConfig.metaFolder +
- AppConfig.dirSeparator +
- AppConfig.folderThumbFile;
- const tmbStats = this.fs.statSync(folderTmbPath);
- if (tmbStats.isFile()) {
- eentry.thumbPath = folderTmbPath;
+ if (!eentry.path.includes('/' + AppConfig.metaFolder)) { // skipping meta folder
+ const folderTmbPath =
+ eentry.path +
+ AppConfig.dirSeparator +
+ AppConfig.metaFolder +
+ AppConfig.dirSeparator +
+ AppConfig.folderThumbFile;
+ const tmbStats = this.fs.statSync(folderTmbPath);
+ if (tmbStats.isFile()) {
+ eentry.thumbPath = folderTmbPath;
+ }
}
}