Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
575 B
31 lines
575 B
1 year ago
|
let fs = require('fs');
|
||
|
let FileTask = require('./file_task').FileTask;
|
||
|
|
||
|
/**
|
||
|
@name jake
|
||
|
@namespace jake
|
||
|
*/
|
||
|
/**
|
||
|
@name jake.DirectoryTask
|
||
|
@constructor
|
||
|
@augments EventEmitter
|
||
|
@augments jake.Task
|
||
|
@augments jake.FileTask
|
||
|
@description A Jake DirectoryTask
|
||
|
|
||
|
@param {String} name The name of the directory to create.
|
||
|
*/
|
||
|
class DirectoryTask extends FileTask {
|
||
|
constructor(...args) {
|
||
|
super(...args);
|
||
|
if (fs.existsSync(this.name)) {
|
||
|
this.updateModTime();
|
||
|
}
|
||
|
else {
|
||
|
this.modTime = null;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
exports.DirectoryTask = DirectoryTask;
|