diff --git a/desktop/sources/scripts/library.js b/desktop/sources/scripts/library.js index 9a60fa2..b2c891a 100644 --- a/desktop/sources/scripts/library.js +++ b/desktop/sources/scripts/library.js @@ -517,6 +517,10 @@ function Library (ronin) { return path } + this.filename = (path = this.filepath()) => { // Returns the name of a file. + return require('path').parse(path).name + } + this.exit = (force = false) => { // Exits Ronin. ronin.source.quit(force) }