diff options
Diffstat (limited to 'lib/models/file.js')
-rw-r--r-- | lib/models/file.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/models/file.js b/lib/models/file.js index b6b06ee..ff7b899 100644 --- a/lib/models/file.js +++ b/lib/models/file.js @@ -20,6 +20,15 @@ File.prototype.getMTime = function() { }; /** + Does the file exists / is set + + @return {Boolean} +*/ +File.prototype.exists = function() { + return Boolean(this.getPath()); +}; + +/** Return type of file ('markdown' or 'asciidoc') @return {String} |