TagSpaces is an offline, open source, document manager with tagging support
fixing issue with opening parent folder fixing jsdoc
uggrock33001f369bf9
diff --git a/data/electron/electron.api.js b/data/electron/electron.api.jsindex 2e233e116..3349ac4ea 100644--- a/data/electron/electron.api.js+++ b/data/electron/electron.api.js@@ -7,8 +7,8 @@ const pathUtils = require('path'); // jshint ignore:lineconst electron = require('electron'); // jshint ignore:lineconst remote = electron.remote; // jshint ignore:line/**- * A implementation of the IOAPI for the nw.js platform- * @class NWJS+ * A implementation of the IOAPI for the electron platform+ * @class Electron* @memberof IOAPI*/define(function(require, exports, module) {@@ -178,7 +178,7 @@ define(function(require, exports, module) {* Checks if new version is available* @name checkNewVersion* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron*/function checkNewVersion() {console.log("Checking for new version...");@@ -199,7 +199,7 @@ define(function(require, exports, module) {* Creates recursively a tree structure for a given directory path* @name createDirectoryTree* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} dirPath - the full path of the directory for which the tree will be generated*/function createDirectoryTree(dirPath) {@@ -247,7 +247,7 @@ define(function(require, exports, module) {* Creates a list with containing the files and the sub directories of a given directory* @name listDirectoryPromiseAsync* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} path - the directory path for which the list will be created* @returns {Promise.<Success, Error>}*/@@ -280,7 +280,7 @@ define(function(require, exports, module) {* Creates a list with containing the files and the sub directories of a given directory* @name listDirectoryPromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} path - the directory path which is listed* @param {boolean} lite - if true the path to a file thumbnails will be not included in the results* This will increase the performance of the function.@@ -346,7 +346,7 @@ define(function(require, exports, module) {* Finds out the properties of a file or directory such last modification date or file size* @name getPropertiesPromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} path - full path to the file or the directory, which will be analysed* @returns {Promise.<Success, Error>}*/@@ -393,7 +393,7 @@ define(function(require, exports, module) {* Creates a directory* @name createDirectoryPromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} dirPath - the full path of the folder which will be created* @returns {Promise.<Success, Error>}*/@@ -412,7 +412,7 @@ define(function(require, exports, module) {* Copies a given file to a specified location* @name copyFilePromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} sourceFilePath - the full path of a file which will be copied* @param {string} targetFilePath - the full path destination of the copied file* @returns {Promise.<Success, Error>}@@ -456,7 +456,7 @@ define(function(require, exports, module) {* Renames a given file* @name renameFilePromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} filePath - the full path of the file which will be renamed* @param {string} newFilePath - the desired full path after the file rename* @returns {Promise.<Success, Error>}@@ -486,7 +486,7 @@ define(function(require, exports, module) {* Rename a directory* @name renameDirectoryPromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} dirPath - the full path of the directory which will be renamed* @param {string} newDirName - the desired full path after the directory rename* @returns {Promise.<Success, Error>}@@ -520,7 +520,7 @@ define(function(require, exports, module) {* Load the content of a text file* @name loadTextFilePromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} filePath - the full path of the file which will be loaded* @param {boolean} isPreview - loads only begin of a file (first 10000 bytes) usefull for previewing of the file* @returns {Promise.<Success, Error>}@@ -558,7 +558,7 @@ define(function(require, exports, module) {* Gets the content of file, useful for binary files* @name getFileContentPromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} fullPath - the full path of the file which will be loaded* @param {string} type - the type of the XHR response, defaul is *arraybuffer** @returns {Promise.<Success, Error>}@@ -590,7 +590,7 @@ define(function(require, exports, module) {* Persists a given content(binary supported) to a specified filepath* @name saveFilePromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} filePath - the full path of the file which should be saved* @param {string} content - content that will be saved* @param {boolean} overwrite - if true existing file path will be overwritten@@ -624,7 +624,7 @@ define(function(require, exports, module) {* Persists a given text content to a specified filepath* @name saveTextFilePromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} filePath - the full path of the file which will be saved* @param {string} content - content that will be saved* @param {string} overwrite - if true existing file path will be overwritten@@ -649,7 +649,7 @@ define(function(require, exports, module) {* Persists a given binary content to a specified filepath* @name saveBinaryFilePromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} filePath - the full path of the file which will be saved* @param {string} content - content that will be saved* @param {string} overwrite - if true existing file path will be overwritten@@ -665,7 +665,7 @@ define(function(require, exports, module) {* Delete a specified file* @name deleteFilePromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} path - the full path of the file which will be deleted* @returns {Promise.<Success, Error>}*/@@ -696,7 +696,7 @@ define(function(require, exports, module) {* Delete a specified directory, the directory should be empty, if the trash can functionality is not enabled* @name deleteDirectoryPromise* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} path - the full path of the directory which will be deleted* @returns {Promise.<Success, Error>}*/@@ -720,7 +720,7 @@ define(function(require, exports, module) {* Selects a directory with the help of a directory chooser* @name selectDirectory* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron*/function selectDirectory() {if (document.getElementById('folderDialogNodeWebkit') === null) {@@ -740,7 +740,7 @@ define(function(require, exports, module) {* Selects a file with the help of a file chooser* @name selectFile* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron*/function selectFile() {if (document.getElementById('fileDialog') === null) {@@ -757,19 +757,19 @@ define(function(require, exports, module) {* Opens a directory in the operating system's default file manager* @name openDirectory* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} dirPath - the full path of the directory which will be opened*/function openDirectory(dirPath) {// opens directory- electron.shell.showItemInFolder(dirPath);+ electron.shell.showItemInFolder(dirPath + TSCORE.dirSeparator + ".");}/*** Opens a file with the operating system's default program for the type of the file* @name openFile* @method- * @memberof IOAPI.NWJS+ * @memberof IOAPI.Electron* @param {string} filePath - the full path of the file which will be opened*/function openFile(filePath) {