TagSpaces is an offline, open source, document manager with tagging support
fixing issue with tagging of folders without .ts folder
Ilian Sapundshieve502576f6812
diff --git a/app/reducers/tagging-actions.js b/app/reducers/tagging-actions.jsindex 8dc9f4c01..950b6e0d9 100644--- a/app/reducers/tagging-actions.js+++ b/app/reducers/tagging-actions.js@@ -108,7 +108,7 @@ const actions = {return true;}).catch(() => {const newFsEntryMeta = {- processedTags+ tags: processedTags};saveMetaDataPromise(path, newFsEntryMeta).then(() => {dispatch(AppActions.reflectUpdateSidecarTags(path, processedTags));diff --git a/app/services/utils-io.js b/app/services/utils-io.jsindex b28a4a664..7ab5c3538 100644--- a/app/services/utils-io.js+++ b/app/services/utils-io.js@@ -25,6 +25,7 @@ import {extractTagsAsObjects,extractFileExtension,cleanTrailingDirSeparator,+ getMetaDirectoryPath,getMetaFileLocationForFile,getMetaFileLocationForDir} from '../utils/paths';@@ -357,6 +358,11 @@ export async function saveMetaDataPromise(path: string, metaData: Object): PromilastUpdated: (new Date()).toJSON()};} else {+ const metaDirectoryPath = getMetaDirectoryPath(path);+ const metaDirectoryProperties = await PlatformIO.getPropertiesPromise(metaDirectoryPath);+ if (!metaDirectoryProperties) {+ await PlatformIO.createDirectoryPromise(metaDirectoryPath);+ }metaFilePath = getMetaFileLocationForDir(path);newFsEntryMeta = {...metaData,