1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Allow attaching files in Electron ap

This commit is contained in:
Laurent Cozic
2017-11-10 22:18:00 +00:00
parent f543015714
commit 49c11fb22e
15 changed files with 437 additions and 86 deletions

View File

@ -1,13 +1,13 @@
function dirname(path) {
if (!path) throw new Error('Path is empty');
let s = path.split('/');
let s = path.split(/\/|\\/);
s.pop();
return s.join('/');
}
function basename(path) {
if (!path) throw new Error('Path is empty');
let s = path.split('/');
let s = path.split(/\/|\\/);
return s[s.length - 1];
}