This commit is contained in:
2017-05-27 23:47:39 +02:00
parent f5ffb7fc67
commit 73ad2d6193
4 changed files with 17 additions and 5 deletions

View File

@ -137,4 +137,10 @@ export class Smartfile {
isSymbolic () {
return false
}
// update things
updateFileName (fileNameArg: string) {
let oldFileName = this.parsedPath.base
this.path.replace(new RegExp(oldFileName + '$'),fileNameArg)
}
}