update smartfile relative path handling

This commit is contained in:
2017-05-01 22:07:25 +02:00
parent 8e19586e47
commit 46b1151201
3 changed files with 12 additions and 3 deletions

View File

@ -94,7 +94,7 @@ export class Smartfile {
* return relative path of file
*/
get relative (): string {
return this.path
return plugins.path.relative(this.base, this.path)
}
/**
@ -124,4 +124,8 @@ export class Smartfile {
isStream () {
return false
}
isSymbolic () {
return false
}
}