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

Merge branch 'master' of github.com:laurent22/joplin

This commit is contained in:
Laurent Cozic
2018-11-13 22:38:32 +00:00
6 changed files with 68 additions and 6 deletions

View File

@ -75,9 +75,14 @@ class BaseItem extends BaseModel {
return r.total;
}
static systemPath(itemOrId) {
if (typeof itemOrId === 'string') return itemOrId + '.md';
return itemOrId.id + '.md';
static systemPath(itemOrId, extension = null) {
if (extension === null)
extension = 'md';
if (typeof itemOrId === 'string')
return itemOrId + '.' + extension;
else
return itemOrId.id + '.' + extension;
}
static isSystemPath(path) {