mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
411 B
TypeScript
22 lines
411 B
TypeScript
import mv = require('mv');
|
|
|
|
() => {
|
|
mv('/tmp/f1.txt', '/tmp/f2.txt', error => {
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
});
|
|
|
|
mv('/tmp/f1.txt', '/tmp/f2.txt', {clobber: false}, error => {
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
});
|
|
|
|
mv('/tmp/f1.txt', '/tmp/f2.txt', {mkdirp: true}, error => {
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
});
|
|
};
|