Skip to content

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

Fíxing issue with file size of the file properties

Ilian981b0baeca95
diff --git a/data/js/ioapi.chrome.js b/data/js/ioapi.chrome.js
index dd8e6beaf..6a74c9f5f 100644
--- a/data/js/ioapi.chrome.js
+++ b/data/js/ioapi.chrome.js
@@ -350,10 +350,11 @@ IO-API
};
var getFileProperties = function(filePath) {
+ var fileSize = nativeIO.getFileSize(filePath);
var fileProperties = {};
if(!nativeIO.isDirectory(filePath)) {
fileProperties.path = filePath;
- fileProperties.size = nativeIO.getFileSize(filePath);
+ fileProperties.size = fileSize;
fileProperties.lmdt = 0;
if(isWin) {
fileProperties.lmdt = new Date(nativeIO.getFileLastDateModified(filePath)*1000);