mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-29 15:44:31 +00:00
22 lines
410 B
TypeScript
22 lines
410 B
TypeScript
import * as mv from '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;
|
|
}
|
|
});
|
|
};
|