mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
18 lines
357 B
JavaScript
18 lines
357 B
JavaScript
|
|
module.exports = {
|
|
basename : function(path) {
|
|
var parts = path.split('/');
|
|
parts.pop();
|
|
path = parts.join('/');
|
|
return path;
|
|
},
|
|
existsSync: function(path) {
|
|
var file = new java.io.File(path);
|
|
|
|
if (file.isFile()) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}; |