Skip to content

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

skip creation of .ts folders in .ts folder

Ilian Sapundshiev2932a35a503a
diff --git a/app/reducers/app.js b/app/reducers/app.js
index 39d6f1293..b675a5418 100644
--- a/app/reducers/app.js
+++ b/app/reducers/app.js
@@ -531,6 +531,16 @@ export const actions = {
PlatformIO.listDirectoryPromise(directoryPath, false)
.then(results => {
const metaDirectory = getMetaDirectoryPath(directoryPath);
+ // Case where current folder is a .ts folder
+ if (normalizePath(directoryPath).endsWith(AppConfig.metaFolder)) {
+ prepareDirectoryContent(
+ results,
+ directoryPath,
+ settings,
+ dispatch
+ );
+ return true;
+ }
PlatformIO.getPropertiesPromise(metaDirectory)
.then(stats => {
if (stats && !stats.isFile) {