0.2.0 • Published 6 years ago
leonid-automatic v0.2.0
#Update History
- 0.1.0 Support remove static files.
- 0.0.9 Support publish static files,support recursive walk local directory.
- 0.2.0 Support list static files, improve Remove operation
#Usage:
Initialize:
let robot = new require('leonid-automatic')({
params: {...},
url: "xxx",
urls: {
restful: "xxx"
}
});
Upload:
robot.Push(
<localPath>,
<remotePath>, // do not add '/' after this argument!!!
[
"!!.DS_Store", // add '!!' to ignore specifical filename
".zip",
".html"
]
);
Remove:
var moment = require('moment');
robot.Remove(
<remotePath>, // add / after this params, this is a directory!!!
{
timepoint: <Moment>,
pattern: <String | Regex>
}
);