Skip to content

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

fixes

stanimir3d0aec960954
diff --git a/app/reducers/io-actions.ts b/app/reducers/io-actions.ts
index 3cd36b3e9..22598642a 100644
--- a/app/reducers/io-actions.ts
+++ b/app/reducers/io-actions.ts
@@ -340,16 +340,21 @@ const actions = {
dispatch(
AppActions.reflectCreateEntry(filePath, true)
);
- return enhanceEntry({
- name: filePath.substring(
- filePath.lastIndexOf(AppConfig.dirSeparator) + 1,
- filePath.length
- ),
- isFile: true,
- size: fileContent.length,
- lmdt: Date.now(),
- path: filePath
- });
+ // TODO handle Thumbnail
+ if (filePath.indexOf('/.ts/') === -1) {
+ return enhanceEntry({
+ name: filePath.substring(
+ filePath.lastIndexOf(AppConfig.dirSeparator) +
+ 1,
+ filePath.length
+ ),
+ isFile: true,
+ size: fileContent.length,
+ lmdt: Date.now(),
+ path: filePath
+ });
+ }
+ return undefined;
})
.catch(err => {
console.error(
diff --git a/app/services/utils-io.ts b/app/services/utils-io.ts
index cc69f3e13..cf09df17c 100644
--- a/app/services/utils-io.ts
+++ b/app/services/utils-io.ts
@@ -145,6 +145,7 @@ export function enhanceEntry(entry: any): FileSystemEntry {
});
}
const enhancedEntry: FileSystemEntry = {
+ uuid: uuidv1(),
name: entry.name,
isFile: entry.isFile,
extension: entry.isFile